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