scron

simple cron daemon
git clone git://git.2f30.org/scron.git
Log | Files | Refs | README | LICENSE

commit 2cc04f743887bb93253e002827ba90a0378220ba
parent 2d8621e7f864f9b1d26ca544c81b1edeb030ff03
Author: sin <sin@2f30.org>
Date:   Mon, 21 Jul 2014 11:56:02 +0100

Set PREFIX to /usr/local, not DESTDIR

Diffstat:
Makefile | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,18 +1,18 @@ CFLAGS = -Os -std=c99 -Wall -Wextra -pedantic -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE LDFLAGS = -s # -static -DESTDIR = /usr/local +PREFIX = /usr/local all: crond install: all - mkdir -p ${DESTDIR}/bin - mkdir -p ${DESTDIR}/etc - install -m 755 crond ${DESTDIR}/bin/ - install -m 644 crontab ${DESTDIR}/etc/ + mkdir -p $(DESTDIR)$(PREFIX)/bin + mkdir -p $(DESTDIR)$(PREFIX)/etc + install -m 755 crond $(DESTDIR)$(PREFIX)/bin/ + install -m 644 crontab $(DESTDIR)$(PREFIX)/etc/ uninstall: - rm -f ${DESTDIR}/bin/crond - rm ${DESTDIR}/etc/crontab + rm -f $(DESTDIR)$(PREFIX)/bin/crond + rm $(DESTDIR)$(PREFIX)/etc/crontab clean: rm -f crond