summary refs log tree commit diff
path: root/port/caesar
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-07-27 16:00:07 -0400
committerJune McEnroe <june@causal.agency>2019-07-27 16:00:07 -0400
commit2eb8d3abbb7fbe8972c0535446ecfcfadffb3eea (patch)
treebd93a6211c82aff2abcb186b53e220d573bf5917 /port/caesar
parentRewrite Makefile once more with more organization (diff)
downloadsrc-2eb8d3abbb7fbe8972c0535446ecfcfadffb3eea.tar.gz
src-2eb8d3abbb7fbe8972c0535446ecfcfadffb3eea.zip
Rewrite port makefiles consistently
Diffstat (limited to '')
-rw-r--r--port/caesar/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/port/caesar/Makefile b/port/caesar/Makefile
index cf939acb..01205b16 100644
--- a/port/caesar/Makefile
+++ b/port/caesar/Makefile
@@ -1,3 +1,6 @@
+PREFIX = ~/.local
+MANDIR = ${PREFIX}/share/man
+
 LDLIBS = -lm
 
 all: caesar rot13
@@ -6,7 +9,11 @@ clean:
 	rm -f caesar rot13
 
 install: caesar rot13 caesar.6
-	mkdir -p ~/.local/bin ~/.local/share/man/man6
-	cp caesar rot13 ~/.local/bin
-	cp caesar.6 ~/.local/share/man/man6
-	cp caesar.6 ~/.local/share/man/man6/rot13.6
+	install -d ${PREFIX}/bin ${MANDIR}/man6
+	install caesar rot13 ${PREFIX}/bin
+	install -m 644 caesar.6 ${MANDIR}/man6/caesar.6
+	install -m 644 caesar.6 ${MANDIR}/man6/rot13.6
+
+uninstall:
+	rm -f ${PREFIX}/bin/caesar ${PREFIX}/bin/rot13
+	rm -f ${MANDIR}/man6/caesar.6 ${MANDIR}/man6/rot13.6
ass='nohover-highlight'> This is a quick 'n dirty hack which makes cgit honor HEAD requests. Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2009-02-19Add support for ETag in 'plain' viewLars Hjemli When downloading a blob identified by its path, the client might want to know if the blob has been modified since a previous download of the same path. To this end, an ETag containing the blob SHA1 seems to be ideal. Todo: add support for HEAD requests... Suggested-by: Owen Taylor <otaylor@redhat.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2009-02-12ui-tree: escape ascii-text properly in hexdump viewLars Hjemli Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2009-02-12Makefile: add doc-related targetsLars Hjemli