commit 85cab4003945caf1f20fbd916c129347ec3136a7
parent 727a4d6db635f712ae97fd3dd0c88d748cf28524
Author: sin <sin@2f30.org>
Date: Sat, 19 Jul 2014 18:51:12 +0100
DESTDIR defaults to /usr/local
Use /bin as opposed to /sbin.
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,16 +1,17 @@
CFLAGS = -Os -std=c99 -Wall -Wextra -pedantic -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE
LDFLAGS = -s # -static
+DESTDIR = /usr/local
all: crond
install: all
- mkdir -p ${DESTDIR}/sbin
+ mkdir -p ${DESTDIR}/bin
mkdir -p ${DESTDIR}/etc
- install -m 755 crond ${DESTDIR}/sbin/
+ install -m 755 crond ${DESTDIR}/bin/
install -m 644 crontab ${DESTDIR}/etc/
uninstall:
- rm -f ${DESTDIR}/sbin/crond
+ rm -f ${DESTDIR}/bin/crond
rm ${DESTDIR}/etc/crontab
clean: