diff options
author | June McEnroe <june@causal.agency> | 2019-07-27 16:00:07 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-07-27 16:00:07 -0400 |
commit | a75b5b298bc9cff3ffb5cbe53336651e179dc6ec (patch) | |
tree | 4b22aca2a0e4d2d9734266f8bd047f02fb9d146a /port/caesar/Makefile | |
parent | Rewrite Makefile once more with more organization (diff) | |
download | src-a75b5b298bc9cff3ffb5cbe53336651e179dc6ec.tar.gz src-a75b5b298bc9cff3ffb5cbe53336651e179dc6ec.zip |
Rewrite port makefiles consistently
Diffstat (limited to '')
-rw-r--r-- | port/caesar/Makefile | 15 |
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 |