From cc7ea705e3461cec8b4d699518303762f6bdab45 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 8 Sep 2018 01:15:55 -0400 Subject: Link gfx man pages in ~/.local --- gfx/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gfx/Makefile') diff --git a/gfx/Makefile b/gfx/Makefile index df71a8aa..28ade67d 100644 --- a/gfx/Makefile +++ b/gfx/Makefile @@ -1,5 +1,8 @@ -BINS = brot gfxx GFX ?= cocoa +PREFIX = ~/.local + +BINS = brot gfxx +MAN1 = $(BINS:%=%.1) CFLAGS += -Wall -Wextra -Wpedantic LDLIBS = -lm -lz @@ -28,8 +31,10 @@ clean: rm -f tags *.o $(BINS) link: - mkdir -p ~/.local/bin - ln -s -f $(BINS:%=$(PWD)/%) ~/.local/bin + mkdir -p $(PREFIX)/bin $(PREFIX)/share/man/man1 + ln -s -f $(BINS:%=$(PWD)/%) $(PREFIX)/bin + ln -s -f $(MAN1:%=$(PWD)/%) $(PREFIX)/share/man/man1 unlink: - rm -f $(BINS:%=~/.local/bin/%) + rm -f $(BINS:%=$(PREFIX)/bin/%) + rm -f $(MAN1:%=$(PREFIX)/share/man/man1/%) -- cgit 1.4.1