diff options
author | June McEnroe <june@causal.agency> | 2018-09-08 01:15:55 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-09-08 01:15:55 -0400 |
commit | cfbb67a437dd7d7ff95e5f21a77d2c4de2320f0b (patch) | |
tree | 77fe8be960b6d319021d9e2388c2fc424efb1b64 | |
parent | Add gfxx.1 (diff) | |
download | src-cfbb67a437dd7d7ff95e5f21a77d2c4de2320f0b.tar.gz src-cfbb67a437dd7d7ff95e5f21a77d2c4de2320f0b.zip |
Link gfx man pages in ~/.local
-rw-r--r-- | gfx/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
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/%) |