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/cgram/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 'port/cgram/Makefile')
-rw-r--r-- | port/cgram/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/port/cgram/Makefile b/port/cgram/Makefile index 1a0b10c1..02f11eec 100644 --- a/port/cgram/Makefile +++ b/port/cgram/Makefile @@ -1,3 +1,6 @@ +PREFIX = ~/.local +MANDIR = ${PREFIX}/share/man + LDLIBS = -lcurses cgram: @@ -6,6 +9,9 @@ clean: rm -f cgram install: cgram cgram.6 - mkdir -p ~/.local/bin ~/.local/share/man/man6 - cp cgram ~/.local/bin - cp cgram.6 ~/.local/share/man/man6 + install -d ${PREFIX}/bin ${MANDIR}/man6 + install cgram ${PREFIX}/bin + install -m 644 cgram.6 ${MANDIR}/man6 + +uninstall: + rm -f ${PREFIX}/bin/cgram ${MANDIR}/man6/cgram.6 |