# Copyright (c) 1983 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile 5.5 (Berkeley) %G%
# Makefile for at, atq, atrm, and atrun
SRCS
= atq.c atrm.c at.c atrun.c
SPOOLDIRS
= /usr
/spool
/at
/usr
/spool
/at
/past
SPOOLFILES
= /usr
/spool
/at
/lasttimedone
$(CC
) $(CFLAGS
) -o at at.c
$(CC
) $(CFLAGS
) -o atq atq.c
$(CC
) $(CFLAGS
) -o atrm atrm.c
$(CC
) $(CFLAGS
) -o atrun atrun.c
-for i in
$(SPOOLDIRS
); \
do mkdir
$(DESTDIR
)/$$i; \
chown
${OWNER} $(DESTDIR
)/$$i; \
chgrp daemon
$(DESTDIR
)/$$i; \
chmod
755 $(DESTDIR
)/$$i; \
-for i in
$(SPOOLFILES
); \
do if
[ ! -f
$(DESTDIR
)/$$i ]; \
then echo
0 > $(DESTDIR
)/$$i; fi
; \
chown
${OWNER} $(DESTDIR
)/$$i; \
chgrp daemon
$(DESTDIR
)/$$i; \
install -s atrun
$(DESTDIR
)/$(ATRUNDIR
)
install -s
-o
${OWNER} -m
4755 atq
$(DESTDIR
)/usr
/bin
install -s
-o
${OWNER} -m
4755 at
$(DESTDIR
)/usr
/bin
install -s
-o
${OWNER} -m
4755 atrm
$(DESTDIR
)/usr
/bin
cc -M
${INCPATH} ${SRCS} | \
awk
' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
else rec = rec " " $$2 } } \
END { print rec } ' > makedep
echo
'/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
echo
'$$r makedep' >>eddep
echo
'# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
echo
'# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
echo
'# see make depend above' >> Makefile
# DO NOT DELETE THIS LINE -- make depend uses it
atq.o
: atq.c
/usr
/include/stdio.h
/usr
/include/sys
/types.h
atq.o
: /usr
/include/sys
/file.h
/usr
/include/sys
/dir.h
/usr
/include/sys
/stat.h
atq.o
: /usr
/include/sys
/time.h
/usr
/include/pwd.h
/usr
/include/ctype.h
atrm.o
: atrm.c
/usr
/include/stdio.h
/usr
/include/pwd.h
/usr
/include/ctype.h
atrm.o
: /usr
/include/sys
/types.h
/usr
/include/sys
/dir.h
/usr
/include/sys
/file.h
atrm.o
: /usr
/include/sys
/stat.h
at.o
: at.c
/usr
/include/stdio.h
/usr
/include/ctype.h
/usr
/include/signal.h
at.o
: /usr
/include/sys
/time.h
/usr
/include/sys
/file.h
atrun.o
: atrun.c
/usr
/include/stdio.h
/usr
/include/sys
/types.h
atrun.o
: /usr
/include/sys
/dir.h
/usr
/include/sys
/file.h
/usr
/include/sys
/time.h
atrun.o
: /usr
/include/sys
/stat.h
/usr
/include/pwd.h
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY