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 | cc7ea705e3461cec8b4d699518303762f6bdab45 (patch) | |
tree | 91a4310d4eebd349c92f7f806d0704b252b4bb34 | |
parent | Add gfxx.1 (diff) | |
download | src-cc7ea705e3461cec8b4d699518303762f6bdab45.tar.gz src-cc7ea705e3461cec8b4d699518303762f6bdab45.zip |
Link gfx man pages in ~/.local
Diffstat (limited to '')
-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/%) |