Annotation of 43BSD/usr.bin/at/Makefile, revision 1.1.1.1

1.1       root        1: #
                      2: # Copyright (c) 1983 Regents of the University of California.
                      3: # All rights reserved.  The Berkeley software License Agreement
                      4: # specifies the terms and conditions for redistribution.
                      5: #
                      6: #      @(#)Makefile    5.4 (Berkeley) 10/9/85
                      7: #
                      8: #       Makefile for at, atq, atrm, and atrun
                      9: #
                     10: ALL=           atq atrm at atrun
                     11: SRCS=          atq.c atrm.c at.c atrun.c
                     12: CFLAGS=                -O
                     13: INCPATH=
                     14: DESTDIR=
                     15: ATRUNDIR=      /usr/lib
                     16: SPOOLDIRS=     /usr/spool/at /usr/spool/at/past
                     17: SPOOLFILES=    /usr/spool/at/lasttimedone
                     18: 
                     19: all: ${ALL}
                     20: 
                     21: at: at.c
                     22:        $(CC) $(CFLAGS) -o at at.c
                     23: 
                     24: atq: atq.c
                     25:        $(CC) $(CFLAGS) -o atq atq.c
                     26: 
                     27: atrm: atrm.c
                     28:        $(CC) $(CFLAGS) -o atrm atrm.c
                     29: 
                     30: atrun: atrun.c
                     31:        $(CC) $(CFLAGS) -o atrun atrun.c
                     32: 
                     33: install: all
                     34:        -for i in $(SPOOLDIRS); \
                     35:                do mkdir $(DESTDIR)/$$i; \
                     36:                chown daemon $(DESTDIR)/$$i; \
                     37:                chgrp daemon $(DESTDIR)/$$i; \
                     38:                chmod 755    $(DESTDIR)/$$i; \
                     39:                done
                     40:        -for i in $(SPOOLFILES); \
                     41:                do if [ ! -f $(DESTDIR)/$$i ]; \
                     42:                then echo 0 > $(DESTDIR)/$$i; fi; \
                     43:                chown daemon $(DESTDIR)/$$i; \
                     44:                chgrp daemon $(DESTDIR)/$$i; \
                     45:                done
                     46:        install -s atrun $(DESTDIR)/$(ATRUNDIR)
                     47:        install -s -o daemon -m 4755 atq $(DESTDIR)/usr/bin
                     48:        install -s -o daemon -m 4755 at $(DESTDIR)/usr/bin
                     49:        install -s -o daemon -m 4755 atrm $(DESTDIR)/usr/bin
                     50: 
                     51: clean:
                     52:        rm -f $(ALL) errs *.o
                     53: 
                     54: print:
                     55:        lpr ${SRCS}
                     56: 
                     57: depend:
                     58:        cc -M ${INCPATH} ${SRCS} | \
                     59:        awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
                     60:                else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
                     61:                       else rec = rec " " $$2 } } \
                     62:              END { print rec } ' > makedep
                     63:        echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
                     64:        echo '$$r makedep' >>eddep
                     65:        echo 'w' >>eddep
                     66:        cp Makefile Makefile.bak
                     67:        ed - Makefile < eddep
                     68:        rm eddep makedep
                     69:        echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
                     70:        echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
                     71:        echo '# see make depend above' >> Makefile
                     72: 
                     73: # DO NOT DELETE THIS LINE -- make depend uses it
                     74: 
                     75: 
                     76: atq.o: atq.c /usr/include/stdio.h /usr/include/sys/types.h
                     77: atq.o: /usr/include/sys/file.h /usr/include/sys/dir.h /usr/include/sys/stat.h
                     78: atq.o: /usr/include/sys/time.h /usr/include/pwd.h /usr/include/ctype.h
                     79: atrm.o: atrm.c /usr/include/stdio.h /usr/include/pwd.h /usr/include/ctype.h
                     80: atrm.o: /usr/include/sys/types.h /usr/include/sys/dir.h /usr/include/sys/file.h
                     81: atrm.o: /usr/include/sys/stat.h
                     82: at.o: at.c /usr/include/stdio.h /usr/include/ctype.h /usr/include/signal.h
                     83: at.o: /usr/include/sys/time.h /usr/include/sys/file.h
                     84: atrun.o: atrun.c /usr/include/stdio.h /usr/include/sys/types.h
                     85: atrun.o: /usr/include/sys/dir.h /usr/include/sys/file.h /usr/include/sys/time.h
                     86: atrun.o: /usr/include/sys/stat.h /usr/include/pwd.h
                     87: # DEPENDENCIES MUST END AT END OF FILE
                     88: # IF YOU PUT STUFF HERE IT WILL GO AWAY
                     89: # see make depend above

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.