new template
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 19 Jun 1987 06:01:40 +0000 (22:01 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 19 Jun 1987 06:01:40 +0000 (22:01 -0800)
SCCS-vsn: usr.bin/at/at/Makefile 5.6
SCCS-vsn: usr.bin/at/at/Makefile 5.6
SCCS-vsn: usr.bin/calendar/Makefile 4.3
SCCS-vsn: usr.bin/dc/Makefile 5.2
SCCS-vsn: usr.bin/dc/Makefile 5.3
SCCS-vsn: usr.bin/dc/Makefile 5.4
SCCS-vsn: usr.bin/calendar/Makefile 4.3

usr/src/usr.bin/at/at/Makefile
usr/src/usr.bin/calendar/Makefile
usr/src/usr.bin/dc/Makefile

index 577953e..9d03fee 100644 (file)
@@ -1,90 +1,90 @@
 #
 #
-# Copyright (c) 1983 Regents of the University of California.
+# Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
-#      @(#)Makefile    5.5 (Berkeley) %G%
+#      @(#)Makefile    5.6     (Berkeley)      %G%
 #
 #
-#       Makefile for at, atq, atrm, and atrun
-#
-ALL=           atq atrm at atrun
-SRCS=          atq.c atrm.c at.c atrun.c
-CFLAGS=                -O
-INCPATH=
-DESTDIR=
+CFLAGS=        -O
+LIBC=  /lib/libc.a
+SRCS=  atq.c atrm.c at.c atrun.c
+OBJS=  atq.o atrm.o at.o atrun.o
 ATRUNDIR=      /usr/lib
 SPOOLDIRS=     /usr/spool/at /usr/spool/at/past
 SPOOLFILES=    /usr/spool/at/lasttimedone
 ATRUNDIR=      /usr/lib
 SPOOLDIRS=     /usr/spool/at /usr/spool/at/past
 SPOOLFILES=    /usr/spool/at/lasttimedone
-OWNER=         root
 
 
-all: ${ALL}
+all: atq atrm at atrun
+
+at: at.c ${LIBC}
+       ${CC} ${CFLAGS} -o $@ at.c
+
+atq: atq.c ${LIBC}
+       ${CC} ${CFLAGS} -o $@ atq.c
 
 
-at: at.c
-       $(CC) $(CFLAGS) -o at at.c
+atrm: atrm.c ${LIBC}
+       ${CC} ${CFLAGS} -o $@ atrm.c
 
 
-atq: atq.c
-       $(CC) $(CFLAGS) -o atq atq.c
+atrun: atrun.c ${LIBC}
+       ${CC} ${CFLAGS} -o $@ atrun.c
 
 
-atrm: atrm.c
-       $(CC) $(CFLAGS) -o atrm atrm.c
+clean: FRC
+       rm -f ${OBJS} core atq atrm at atrun
 
 
-atrun: atrun.c
-       $(CC) $(CFLAGS) -o atrun atrun.c
+depend: FRC
+       mkdep -p ${CFLAGS} ${SRCS}
 
 
-install: all
-       -for i in $(SPOOLDIRS); \
-               do mkdir $(DESTDIR)/$$i; \
-               chown ${OWNER} $(DESTDIR)/$$i; \
-               chgrp daemon $(DESTDIR)/$$i; \
-               chmod 755    $(DESTDIR)/$$i; \
-               done
-       -for i in $(SPOOLFILES); \
-               do if [ ! -f $(DESTDIR)/$$i ]; \
-               then echo 0 > $(DESTDIR)/$$i; fi; \
-               chown ${OWNER} $(DESTDIR)/$$i; \
-               chgrp daemon $(DESTDIR)/$$i; \
-               done
-       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
+install: FRC
+       -for i in ${SPOOLDIRS}; do \
+               mkdir ${DESTDIR}/$$i > /dev/null 2>&1; \
+               chown root ${DESTDIR}/$$i; \
+               chgrp daemon ${DESTDIR}/$$i; \
+               chmod 755 ${DESTDIR}/$$i; \
+       done
+       -for i in ${SPOOLFILES}; do \
+               if [ ! -f ${DESTDIR}/$$i ]; then \
+                       echo 0 > ${DESTDIR}/$$i; \
+               fi; \
+               chown root ${DESTDIR}/$$i; \
+               chgrp daemon ${DESTDIR}/$$i; \
+       done
+       install -s -o bin -g bin -m 755 atrun ${DESTDIR}/${ATRUNDIR}
+       install -s -o root -g bin -m 4755 atq ${DESTDIR}/usr/bin
+       install -s -o root -g bin -m 4755 at ${DESTDIR}/usr/bin
+       install -s -o root -g bin -m 4755 atrm ${DESTDIR}/usr/bin
 
 
-clean:
-       rm -f $(ALL) errs *.o
+lint: FRC
+       lint ${CFLAGS} atq.c
+       lint ${CFLAGS} atrm.c
+       lint ${CFLAGS} at.c
+       lint ${CFLAGS} atrun.c
 
 
-print:
-       lpr ${SRCS}
+tags: FRC
+       ctags atq.c
+       ctags -a atrm.c
+       ctags -a at.c
+       ctags -a atrun.c
+       sort -o tags tags
 
 
-depend:
-       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 'w' >>eddep
-       cp Makefile Makefile.bak
-       ed - Makefile < eddep
-       rm eddep makedep
-       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
+FRC:
 
 
-# DO NOT DELETE THIS LINE -- make depend uses it
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
 
 
+atq: atq.c /usr/include/stdio.h /usr/include/sys/types.h
+atq: /usr/include/sys/file.h /usr/include/sys/dir.h /usr/include/sys/stat.h
+atq: /usr/include/sys/time.h /usr/include/time.h /usr/include/pwd.h
+atq: /usr/include/ctype.h
+atrm: atrm.c /usr/include/stdio.h /usr/include/pwd.h /usr/include/ctype.h
+atrm: /usr/include/sys/types.h /usr/include/sys/dir.h /usr/include/sys/file.h
+atrm: /usr/include/sys/stat.h
+at: at.c /usr/include/stdio.h /usr/include/ctype.h /usr/include/signal.h
+at: /usr/include/pwd.h /usr/include/sys/param.h /usr/include/sys/types.h
+at: /usr/include/signal.h /usr/include/machine/machparam.h
+at: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/file.h
+atrun: atrun.c /usr/include/stdio.h /usr/include/sys/param.h
+atrun: /usr/include/sys/types.h /usr/include/signal.h
+atrun: /usr/include/machine/machparam.h /usr/include/sys/dir.h
+atrun: /usr/include/sys/file.h /usr/include/sys/time.h /usr/include/time.h
+atrun: /usr/include/sys/stat.h /usr/include/pwd.h
 
 
-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
-# see make depend above
+# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
index 267fe52..0637223 100644 (file)
@@ -1,4 +1,4 @@
-#      Makefile        4.2     87/05/31
+#      Makefile        4.3     87/06/18
 #
 DESTDIR=
 CFLAGS=        -O
 #
 DESTDIR=
 CFLAGS=        -O
index 6743c50..4b63796 100644 (file)
@@ -1,19 +1,40 @@
 #
 #
-#      @(#)Makefile    5.1     (Berkeley)      87/05/31
+# Copyright (c) 1987 Regents of the University of California.
+# All rights reserved.  The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
 #
 #
-DESTDIR=
-SRCS=  dc.c dc.h
-CFLAGS=        -O
+#      @(#)Makefile    5.4     (Berkeley)      %G%
+#
+CFLAGS=        -O -I.
+LIBC=  /lib/libc.a
+SRCS=  dc.c
+OBJS=  dc.h
 
 all: dc
 
 
 all: dc
 
-dc:    dc.c dc.h
-       ${CC} ${CFLAGS} dc.c -o dc
+dc:    dc.c ${LIBC}
+       ${CC} ${CFLAGS} dc.c -o $@
+
+clean: FRC
+       rm -f ${OBJS} core dc
+
+depend: FRC
+       mkdep -p ${CFLAGS} ${SRCS}
+
+install: FRC
+       install -s -o bin -g bin -m 755 dc ${DESTDIR}/usr/bin/dc
+
+lint: FRC
+       lint ${CFLAGS} ${SRCS}
+
+tags: FRC
+       ctags ${SRCS}
+
+FRC:
 
 
-install: dc
-       install -s dc ${DESTDIR}/usr/bin/dc
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
 
 
-clean:
-       rm -f *.o dc a.out errs core
+dc: dc.c /usr/include/stdio.h /usr/include/signal.h dc.h
 
 
-depend:
+# IF YOU PUT ANYTHING HERE IT WILL GO AWAY