From 2eb8d3abbb7fbe8972c0535446ecfcfadffb3eea Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sat, 27 Jul 2019 16:00:07 -0400 Subject: Rewrite port makefiles consistently --- port/caesar/Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'port/caesar') 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 -- cgit 1.4.1