ArmJob: fixed comparison btw MaxWait and NotUntil
[yacron.git] / Makefile
blob1279082fa0d6f0e22f354ef1a571aa96010971fc
1 # Makefile for yet another cron and crontab
4 # Overriding defines from defs.h
5 # DEFS = -DSCRONTABS='"/etc/cron.d"' \
6 # -DCRONTABS='"/var/spool/cron/crontabs"' \
7 # -DCRONUPDATE='"cron.update"' \
8 # -DTIMESTAMPS='"/var/sool/cron/timestamps"' \
9 # -DTMPDIR='"/tmp"' \
10 # -DLOG_FILE='"/var/log/crond.log"' \
11 # -DLOG_IDENT='"crond"' \
12 # -DSENDMAIL='"/usr/sbin/sendmail"' \
14 DESTDIR ?= /usr/local
15 DISTOWN= jim
16 DISTTAR= /home/abs/yacron40beta.tgz
18 CC = gcc
19 CFLAGS = -O2 -Wall -Wstrict-prototypes ${DEFS}
20 LIB =
21 SRCS = main.c subs.c database.c job.c
22 OBJS = main.o subs.o database.o job.o
23 D_SRCS = crontab.c subs.c
24 D_OBJS = crontab.o subs.o
25 PROTOS= protos.h
27 all: ${PROTOS} crond crontab
29 crond: ${OBJS}
30 ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB}
31 strip crond
33 crontab: ${D_OBJS}
34 ${CC} ${CFLAGS} -o crontab ${D_OBJS}
35 strip crontab
37 protos.h: ${SRCS} ${D_SRCS}
38 fgrep -h Prototype ${SRCS} ${D_SRCS} >protos.h
40 clean: cleano
41 rm -f crond crontab
43 cleano:
44 rm -f *.o dcron.tgz ${PROTOS}
46 install:
47 install -o root -g wheel -m 0755 crond ${DESTDIR}/sbin/crond
48 install -o root -g wheel -m 4755 crontab ${DESTDIR}/bin/crontab
49 install -o root -g wheel -m 0644 crontab.1 ${DESTDIR}/man/man1/crontab.1
50 install -o root -g wheel -m 0644 crond.8 ${DESTDIR}/man/man8/crond.8
52 tar: clean
53 (cd ..; tar czf ${DISTTAR}.new repo)
54 chown ${DISTOWN} ${DISTTAR}.new
55 chmod 644 ${DISTTAR}.new
56 mv -f ${DISTTAR}.new ${DISTTAR}