1 | # $Id: Makefile.in,v 1.1 1998-11-16 16:43:36 ghudson Exp $ |
---|
2 | |
---|
3 | SHELL=/bin/sh |
---|
4 | VPATH=@srcdir@ |
---|
5 | INSTALL=@INSTALL@ |
---|
6 | INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
---|
7 | srcdir=@srcdir@ |
---|
8 | top_srcdir=@top_srcdir@ |
---|
9 | prefix=@prefix@ |
---|
10 | exec_prefix=@exec_prefix@ |
---|
11 | bindir=@bindir@ |
---|
12 | mandir=@mandir@ |
---|
13 | |
---|
14 | CC=@CC@ |
---|
15 | DEFS=@DEFS@ |
---|
16 | CPPFLAGS=@CPPFLAGS@ |
---|
17 | CFLAGS=@CFLAGS@ |
---|
18 | LDFLAGS=@LDFLAGS@ |
---|
19 | LIBS=@AFS_LIBS@ @LIBS@ -lcom_err |
---|
20 | ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS} |
---|
21 | |
---|
22 | COBJS= util.o delete_errs.o errors.o |
---|
23 | POBJS= directories.o pattern.o shell_regexp.o stack.o |
---|
24 | OBJS= ${COBJS} ${POBJS} delete.o undelete.o expunge.o lsdel.o col.o |
---|
25 | DELETEOBJS= delete.o ${COBJS} |
---|
26 | UNDELETEOBJS= undelete.o ${POBJS} ${COBJS} |
---|
27 | EXPUNGEOBJS= expunge.o col.o ${POBJS} ${COBJS} |
---|
28 | LSDELOBJS= lsdel.o col.o ${POBJS} ${COBJS} |
---|
29 | |
---|
30 | PROGS= delete undelete expunge lsdel |
---|
31 | |
---|
32 | all: ${PROGS} |
---|
33 | |
---|
34 | delete: ${DELETEOBJS} |
---|
35 | ${CC} ${LDFLAGS} -o $@ ${DELETEOBJS} ${LIBS} |
---|
36 | |
---|
37 | undelete: ${UNDELETEOBJS} |
---|
38 | ${CC} ${LDFLAGS} -o $@ ${UNDELETEOBJS} ${LIBS} |
---|
39 | |
---|
40 | expunge: ${EXPUNGEOBJS} |
---|
41 | ${CC} ${LDFLAGS} -o $@ ${EXPUNGEOBJS} ${LIBS} |
---|
42 | |
---|
43 | lsdel: ${LSDELOBJS} |
---|
44 | ${CC} ${LDFLAGS} -o $@ ${LSDELOBJS} ${LIBS} |
---|
45 | |
---|
46 | delete_errs.h delete_errs.c: |
---|
47 | compile_et ${srcdir}/delete_errs.et |
---|
48 | |
---|
49 | .c.o: |
---|
50 | ${CC} -c ${ALL_CFLAGS} $< |
---|
51 | |
---|
52 | check: |
---|
53 | |
---|
54 | install: |
---|
55 | ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir} |
---|
56 | ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1 |
---|
57 | ${INSTALL_PROGRAM} delete ${DESTDIR}${bindir} |
---|
58 | ${INSTALL_PROGRAM} undelete ${DESTDIR}${bindir} |
---|
59 | ${INSTALL_PROGRAM} expunge ${DESTDIR}${bindir} |
---|
60 | ${INSTALL_PROGRAM} lsdel ${DESTDIR}${bindir} |
---|
61 | rm -f ${DESTDIR}${bindir}/purge |
---|
62 | ln -s expunge ${DESTDIR}${bindir}/purge |
---|
63 | ${INSTALL} -m 444 ${srcdir}/man1/delete.1 ${DESTDIR}${mandir}/man1 |
---|
64 | ${INSTALL} -m 444 ${srcdir}/man1/undelete.1 ${DESTDIR}${mandir}/man1 |
---|
65 | ${INSTALL} -m 444 ${srcdir}/man1/expunge.1 ${DESTDIR}${mandir}/man1 |
---|
66 | ${INSTALL} -m 444 ${srcdir}/man1/lsdel.1 ${DESTDIR}${mandir}/man1 |
---|
67 | ${INSTALL} -m 444 ${srcdir}/man1/purge.1 ${DESTDIR}${mandir}/man1 |
---|
68 | |
---|
69 | clean: |
---|
70 | rm -f ${PROGS} ${OBJS} |
---|
71 | |
---|
72 | distclean: clean |
---|
73 | rm -f config.cache config.log config.status Makefile |
---|
74 | |
---|
75 | col.o: col.c errors.h mit-copying.h delete_errs.h col.h |
---|
76 | delete.o: delete.c errors.h mit-copying.h delete_errs.h util.h delete.h |
---|
77 | directories.o: directories.c delete_errs.h util.h mit-copying.h \ |
---|
78 | directories.h errors.h |
---|
79 | errors.o: errors.c delete_errs.h mit-copying.h |
---|
80 | expunge.o: expunge.c col.h mit-copying.h util.h directories.h \ |
---|
81 | pattern.h expunge.h shell_regexp.h delete_errs.h errors.h |
---|
82 | lsdel.o: lsdel.c col.h mit-copying.h util.h directories.h pattern.h \ |
---|
83 | lsdel.h shell_regexp.h delete_errs.h errors.h |
---|
84 | pattern.o: pattern.c pattern.h mit-copying.h util.h directories.h \ |
---|
85 | undelete.h shell_regexp.h delete_errs.h errors.h stack.h |
---|
86 | shell_regexp.o: shell_regexp.c shell_regexp.h mit-copying.h \ |
---|
87 | delete_errs.h errors.h |
---|
88 | stack.o: stack.c stack.h mit-copying.h delete_errs.h errors.h util.h |
---|
89 | undelete.o: undelete.c delete_errs.h pattern.h mit-copying.h util.h \ |
---|
90 | directories.h undelete.h shell_regexp.h errors.h |
---|
91 | util.o: util.c delete_errs.h util.h mit-copying.h directories.h \ |
---|
92 | errors.h |
---|