[1706] | 1 | # Copyright 1988 Massachusetts Institute of Technology. |
---|
| 2 | # |
---|
| 3 | # For copying and distribution information, see the file |
---|
| 4 | # "mit-copyright.h". |
---|
| 5 | # |
---|
| 6 | # $Source: /afs/dev.mit.edu/source/repository/athena/bin/delete/Makefile,v $ |
---|
| 7 | # $Author: jik $ |
---|
[1849] | 8 | # $Header: /afs/dev.mit.edu/source/repository/athena/bin/delete/Makefile,v 1.9 1989-05-04 14:05:48 jik Exp $ |
---|
[1706] | 9 | # |
---|
| 10 | |
---|
[1734] | 11 | DESTDIR = |
---|
[1706] | 12 | TARGETS = delete undelete expunge purge lsdel |
---|
[1750] | 13 | INSTALLDIR = /bin/athena |
---|
[1685] | 14 | CC = cc |
---|
[1706] | 15 | CFLAGS = -O |
---|
[1717] | 16 | SRCS = delete.c undelete.c directories.c pattern.c util.c expunge.c \ |
---|
| 17 | lsdel.c col.c |
---|
[1849] | 18 | INCS = col.h delete.h directories.h expunge.h lsdel.h mit-copyright.h\ |
---|
| 19 | pattern.h undelete.h util.h |
---|
| 20 | MANS = man1 man1/delete.1 man1/expunge.1 man1/lsdel.1 man1/purge.1\ |
---|
| 21 | man1/undelete.1 |
---|
| 22 | ARCHIVE = README Makefile MANIFEST PATCHLEVEL $(SRCS) $(INCS) $(MANS) |
---|
[1685] | 23 | |
---|
| 24 | all: $(TARGETS) |
---|
| 25 | |
---|
| 26 | install: |
---|
[1734] | 27 | for i in $(TARGETS) ;\ |
---|
| 28 | do \ |
---|
[1750] | 29 | install -c -s $$i $(DESTDIR)$(INSTALLDIR) ; \ |
---|
[1734] | 30 | install -c man1/$$i.1 $(DESTDIR)/usr/man/man1 ; \ |
---|
[1685] | 31 | done |
---|
| 32 | |
---|
[1687] | 33 | delete: delete.o util.o |
---|
| 34 | cc $(CFLAGS) -o delete delete.o util.o |
---|
[1685] | 35 | |
---|
[1734] | 36 | saber_delete: |
---|
| 37 | #alias s step |
---|
| 38 | #alias n next |
---|
| 39 | #load delete.c util.c |
---|
| 40 | |
---|
[1687] | 41 | undelete: undelete.o directories.o util.o pattern.o |
---|
| 42 | cc $(CFLAGS) -o undelete undelete.o directories.o util.o pattern.o |
---|
[1685] | 43 | |
---|
[1706] | 44 | saber_undelete: |
---|
| 45 | #alias s step |
---|
| 46 | #alias n next |
---|
| 47 | #load undelete.c directories.c util.c pattern.c |
---|
| 48 | |
---|
[1734] | 49 | expunge: expunge.o directories.o pattern.o util.o col.o |
---|
| 50 | cc $(CFLAGS) -o expunge expunge.o directories.o pattern.o \ |
---|
| 51 | util.o col.o |
---|
[1706] | 52 | |
---|
[1734] | 53 | |
---|
[1706] | 54 | saber_expunge: |
---|
| 55 | #alias s step |
---|
| 56 | #alias n next |
---|
[1734] | 57 | #load expunge.c directories.c pattern.c util.c col.c |
---|
[1706] | 58 | |
---|
| 59 | purge: expunge |
---|
| 60 | ln -s expunge purge |
---|
| 61 | |
---|
[1717] | 62 | lsdel: lsdel.o util.o directories.o pattern.o col.o |
---|
| 63 | cc $(CFLAGS) -o lsdel lsdel.o util.o directories.o pattern.o col.o |
---|
| 64 | |
---|
| 65 | saber_lsdel: |
---|
| 66 | #alias s step |
---|
| 67 | #alias n next |
---|
| 68 | #load lsdel.c util.c directories.c pattern.c col.c |
---|
| 69 | |
---|
[1849] | 70 | tar: $(ARCHIVE) |
---|
| 71 | @echo "Checking to see if everything's checked in...." |
---|
| 72 | @for i in $(ARCHIVE) ;\ |
---|
| 73 | do \ |
---|
| 74 | if [ -w $$i ] ; then \ |
---|
| 75 | echo "$$i isn't checked in. Check it in before making"; \ |
---|
| 76 | echo "an archive."; \ |
---|
| 77 | exit 1; \ |
---|
| 78 | fi ; \ |
---|
| 79 | exit 0; \ |
---|
| 80 | done |
---|
| 81 | tar cvf - $(ARCHIVE) | compress > delete.tar.Z |
---|
| 82 | |
---|
| 83 | shar: $(ARCHIVE) |
---|
| 84 | @echo "Checking to see if everything's checked in...." |
---|
| 85 | @for i in $(ARCHIVE) ;\ |
---|
| 86 | do \ |
---|
| 87 | if [ -w $$i ] ; then \ |
---|
| 88 | echo "$$i isn't checked in. Check it in before making"; \ |
---|
| 89 | echo "an archive."; \ |
---|
| 90 | exit 1; \ |
---|
| 91 | fi ; \ |
---|
| 92 | exit 0; \ |
---|
| 93 | done |
---|
| 94 | makekit -oMANIFEST -h2 MANIFEST $(ARCHIVE) |
---|
| 95 | |
---|
| 96 | patch: $(ARCHIVE) |
---|
| 97 | @echo "Checking to see if everything's checked in...." |
---|
| 98 | @for i in $(ARCHIVE) ;\ |
---|
| 99 | do \ |
---|
| 100 | if [ -w $$i ] ; then \ |
---|
| 101 | echo "$$i isn't checked in. Check it in before making"; \ |
---|
| 102 | echo "an archive."; \ |
---|
| 103 | exit 1; \ |
---|
| 104 | fi ; \ |
---|
| 105 | exit 0; \ |
---|
| 106 | done |
---|
| 107 | makepatch $(ARCHIVE) |
---|
| 108 | mv patch delete.patch`cat PATCHLEVEL` |
---|
| 109 | shar delete.patch`cat PATCHLEVEL` > delete.patch`cat PATCHLEVEL`.shar |
---|
| 110 | |
---|
[1685] | 111 | clean: |
---|
| 112 | -rm -f *~ *.bak *.o delete undelete lsdel expunge purge |
---|
| 113 | |
---|
| 114 | depend: delete.c undelete.c |
---|
| 115 | /usr/athena/makedepend -v $(CFLAGS) -s'# DO NOT DELETE' $(SRCS) |
---|
| 116 | |
---|
| 117 | # DO NOT DELETE THIS LINE -- makedepend depends on it |
---|
[1734] | 118 | |
---|
| 119 | delete.o: /usr/include/sys/types.h /usr/include/stdio.h |
---|
| 120 | delete.o: /usr/include/sys/stat.h /usr/include/sys/dir.h |
---|
| 121 | delete.o: /usr/include/strings.h /usr/include/sys/param.h |
---|
| 122 | # /usr/include/sys/param.h includes: |
---|
| 123 | # machine/machparam.h |
---|
| 124 | # signal.h |
---|
| 125 | # sys/types.h |
---|
| 126 | delete.o: /usr/include/machine/machparam.h /usr/include/sys/signal.h |
---|
[1810] | 127 | delete.o: /usr/include/sys/file.h util.h |
---|
| 128 | # util.h includes: |
---|
| 129 | # mit-copyright.h |
---|
| 130 | delete.o: mit-copyright.h delete.h |
---|
| 131 | # delete.h includes: |
---|
| 132 | # mit-copyright.h |
---|
[1734] | 133 | undelete.o: /usr/include/stdio.h /usr/include/sys/types.h |
---|
| 134 | undelete.o: /usr/include/sys/dir.h /usr/include/sys/param.h |
---|
| 135 | undelete.o: /usr/include/machine/machparam.h /usr/include/sys/signal.h |
---|
| 136 | undelete.o: /usr/include/strings.h /usr/include/sys/stat.h directories.h |
---|
[1810] | 137 | # directories.h includes: |
---|
| 138 | # mit-copyright.h |
---|
| 139 | undelete.o: mit-copyright.h pattern.h |
---|
| 140 | # pattern.h includes: |
---|
| 141 | # mit-copyright.h |
---|
| 142 | undelete.o: util.h undelete.h |
---|
| 143 | # undelete.h includes: |
---|
| 144 | # mit-copyright.h |
---|
[1734] | 145 | directories.o: /usr/include/sys/types.h /usr/include/sys/stat.h |
---|
| 146 | directories.o: /usr/include/sys/param.h /usr/include/machine/machparam.h |
---|
| 147 | directories.o: /usr/include/sys/signal.h /usr/include/sys/dir.h |
---|
[1810] | 148 | directories.o: /usr/include/strings.h directories.h mit-copyright.h util.h |
---|
[1734] | 149 | pattern.o: /usr/include/stdio.h /usr/include/sys/types.h |
---|
| 150 | pattern.o: /usr/include/sys/dir.h /usr/include/sys/param.h |
---|
| 151 | pattern.o: /usr/include/machine/machparam.h /usr/include/sys/signal.h |
---|
| 152 | pattern.o: /usr/include/strings.h /usr/include/sys/stat.h directories.h |
---|
[1810] | 153 | pattern.o: mit-copyright.h pattern.h util.h undelete.h |
---|
[1734] | 154 | util.o: /usr/include/stdio.h /usr/include/sys/param.h |
---|
| 155 | util.o: /usr/include/machine/machparam.h /usr/include/sys/signal.h |
---|
| 156 | util.o: /usr/include/sys/types.h /usr/include/sys/stat.h |
---|
| 157 | util.o: /usr/include/sys/dir.h /usr/include/strings.h /usr/include/pwd.h |
---|
[1810] | 158 | util.o: directories.h mit-copyright.h util.h |
---|
[1734] | 159 | expunge.o: /usr/include/stdio.h /usr/include/sys/types.h |
---|
| 160 | expunge.o: /usr/include/sys/time.h |
---|
| 161 | # /usr/include/sys/time.h includes: |
---|
| 162 | # time.h |
---|
| 163 | expunge.o: /usr/include/sys/time.h /usr/include/sys/dir.h |
---|
| 164 | expunge.o: /usr/include/sys/param.h /usr/include/machine/machparam.h |
---|
| 165 | expunge.o: /usr/include/sys/signal.h /usr/include/strings.h |
---|
[1810] | 166 | expunge.o: /usr/include/sys/stat.h col.h |
---|
| 167 | # col.h includes: |
---|
| 168 | # mit-copyright.h |
---|
| 169 | expunge.o: mit-copyright.h directories.h util.h pattern.h expunge.h |
---|
| 170 | # expunge.h includes: |
---|
| 171 | # mit-copyright.h |
---|
[1734] | 172 | lsdel.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/sys/dir.h |
---|
| 173 | lsdel.o: /usr/include/sys/param.h /usr/include/machine/machparam.h |
---|
| 174 | lsdel.o: /usr/include/sys/signal.h /usr/include/sys/stat.h |
---|
[1810] | 175 | lsdel.o: /usr/include/strings.h col.h mit-copyright.h util.h directories.h |
---|
| 176 | lsdel.o: pattern.h lsdel.h |
---|
| 177 | # lsdel.h includes: |
---|
| 178 | # mit-copyright.h |
---|
| 179 | col.o: /usr/include/stdio.h /usr/include/strings.h col.h mit-copyright.h |
---|