summary refs log tree commit diff
path: root/port/caesar
diff options
context:
space:
mode:
Diffstat (limited to 'port/caesar')
-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
all bc(1) on ArchJune McEnroe 2018-09-02SendEnv LANGJune McEnroe 2018-08-27Add New Order — TemptationJune McEnroe 2018-08-26Add NetBSD to install.shJune McEnroe 2018-08-24Show hostname in title over SSHJune McEnroe 2018-08-23Alias bc='bc -l'June McEnroe 2018-08-20Update usage of scheme in READMEJune McEnroe 2018-08-20Use scheme.h in fbatt and fbclockJune McEnroe 2018-08-20Generate scheme.hJune McEnroe 2018-08-20Add dependencies on gfx.hJune McEnroe 2018-08-18Add Blondie — Heart of GlassJune McEnroe 2018-08-18Set FCEDIT=$EDITORJune McEnroe 2018-08-18Only post commits with bodies to MastodonJune McEnroe 2018-08-18Run tf/cfg link script with /bin/shJune McEnroe 2018-08-18Run {,s,t}up with /bin/shJune McEnroe 2018-08-18Use whence instead of typeJune McEnroe 2018-08-18Cut off path components until right prompt fitsJune McEnroe 2018-08-17Add "private" alias to source encrypted fileJune McEnroe 2018-08-17Add vim mapping to add a #includeJune McEnroe