summary refs log tree commit diff
path: root/gfx/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-08 01:15:55 -0400
committerJune McEnroe <june@causal.agency>2018-09-08 01:15:55 -0400
commitcfbb67a437dd7d7ff95e5f21a77d2c4de2320f0b (patch)
tree77fe8be960b6d319021d9e2388c2fc424efb1b64 /gfx/Makefile
parentAdd gfxx.1 (diff)
downloadsrc-cfbb67a437dd7d7ff95e5f21a77d2c4de2320f0b.tar.gz
src-cfbb67a437dd7d7ff95e5f21a77d2c4de2320f0b.zip
Link gfx man pages in ~/.local
Diffstat (limited to '')
-rw-r--r--gfx/Makefile13
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/%)
Reference png.h in bin.7June McEnroe 2019-07-27Revert "Use scheme to style HTMLs"June McEnroe This reverts commit 4b7d5161a30645b0a23691687ef1aafdda62d3bb. I don't know why but I don't like it. 2019-07-27Remove scheme text linkJune McEnroe No standard base64 encoder so no way to maintain it. 2019-07-26Update Dark.terminalJune McEnroe Why are the blobs so much bigger now? 2019-07-26Lighten dark whiteJune McEnroe 2019-07-25Add png.3 man pageJune McEnroe 2019-07-25Use scheme to style HTMLsJune McEnroe 2019-07-25Don't match comments in strings in makeJune McEnroe 2019-07-25Generate index.html with links from bin.7June McEnroe 2019-07-24Warn when date has changedJune McEnroe 2019-07-24Add whenJune McEnroe When? Now. 2019-07-24Remove histedit from bitJune McEnroe