aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-21 13:50:11 +0000
committerOmar Polo <op@omarpolo.com>2021-01-21 13:50:11 +0000
commitac69e83aab2ba875b59f5f0d789ec6e4cca86e61 (patch)
treee6f80f8134072f5070de836586c3e58bdda1ba49 /Makefile
parentfb2c20c301e57e4df7093d948a3f26a9b6dd0ffd (diff)
improve install target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7cb798d..509eaac 100644
--- a/Makefile
+++ b/Makefile
@@ -45,5 +45,7 @@ test: gmid iri_test
cd test && ./test.sh
install: gmid
- install -o root -g wheel -m 0755 gmid ${PREFIX}/bin/
- install -o root -g wheel -m 0644 gmid.1 ${PREFIX}/man/man1
+ mkdir -p ${DESTDIR}${BINDIR}
+ mkdir -p ${DESTDIR}${MANDIR}/man1
+ ${INSTALL_PROGRAM} gmid ${DESTDIR}${BINDIR}
+ ${INSTALL_MAN} gmid.1 ${DESTDIR}${BINDIR}