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"' \
10 # -DLOG_FILE='"/var/log/crond.log"' \
11 # -DLOG_IDENT='"crond"' \
12 # -DSENDMAIL='"/usr/sbin/sendmail"' \
16 DISTTAR
= /home
/abs
/yacron40beta.tgz
19 CFLAGS
= -O2
-Wall
-Wstrict-prototypes
${DEFS}
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
27 all: ${PROTOS} crond crontab
30 ${CC} ${CFLAGS} -o crond
${OBJS} ${LIB}
34 ${CC} ${CFLAGS} -o crontab
${D_OBJS}
37 protos.h
: ${SRCS} ${D_SRCS}
38 fgrep
-h Prototype
${SRCS} ${D_SRCS} >protos.h
44 rm -f
*.o dcron.tgz
${PROTOS}
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
53 (cd ..
; tar czf
${DISTTAR}.new repo
)
54 chown
${DISTOWN} ${DISTTAR}.new
55 chmod
644 ${DISTTAR}.new
56 mv
-f
${DISTTAR}.new
${DISTTAR}