source: trunk/athena/bin/delete/Makefile.in @ 23659

Revision 23659, 2.9 KB checked in by broder, 16 years ago (diff)
In delete: * Apply patches from jik: - When recursively deleting a directory, read in the directory's entire contents before deleting anything so readdir doesn't get confused
Line 
1# $Id: Makefile.in,v 1.1 1998-11-16 16:43:36 ghudson Exp $
2
3SHELL=/bin/sh
4VPATH=@srcdir@
5INSTALL=@INSTALL@
6INSTALL_PROGRAM=@INSTALL_PROGRAM@
7srcdir=@srcdir@
8top_srcdir=@top_srcdir@
9prefix=@prefix@
10exec_prefix=@exec_prefix@
11bindir=@bindir@
12mandir=@mandir@
13
14CC=@CC@
15DEFS=@DEFS@
16CPPFLAGS=@CPPFLAGS@
17CFLAGS=@CFLAGS@
18LDFLAGS=@LDFLAGS@
19LIBS=@AFS_LIBS@ @LIBS@ -lcom_err
20ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS}
21
22COBJS=          util.o delete_errs.o errors.o
23POBJS=          directories.o pattern.o shell_regexp.o stack.o
24OBJS=           ${COBJS} ${POBJS} delete.o undelete.o expunge.o lsdel.o col.o
25DELETEOBJS=     delete.o ${POBJS} ${COBJS}
26UNDELETEOBJS=   undelete.o ${POBJS} ${COBJS}
27EXPUNGEOBJS=    expunge.o col.o ${POBJS} ${COBJS}
28LSDELOBJS=      lsdel.o col.o ${POBJS} ${COBJS}
29
30PROGS=          delete undelete expunge lsdel
31
32all: ${PROGS}
33
34delete: ${DELETEOBJS}
35        ${CC} ${LDFLAGS} -o $@ ${DELETEOBJS} ${LIBS}
36
37undelete: ${UNDELETEOBJS}
38        ${CC} ${LDFLAGS} -o $@ ${UNDELETEOBJS} ${LIBS}
39
40expunge: ${EXPUNGEOBJS}
41        ${CC} ${LDFLAGS} -o $@ ${EXPUNGEOBJS} ${LIBS}
42
43lsdel: ${LSDELOBJS}
44        ${CC} ${LDFLAGS} -o $@ ${LSDELOBJS} ${LIBS}
45
46delete_errs.h delete_errs.c:
47        compile_et ${srcdir}/delete_errs.et
48
49.c.o:
50        ${CC} -c ${ALL_CFLAGS} $<
51
52check:
53
54install:
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
69clean:
70        rm -f ${PROGS} ${OBJS}
71
72distclean: clean
73        rm -f config.cache config.log config.status Makefile
74
75col.o: col.c errors.h mit-copying.h delete_errs.h col.h
76delete.o: delete.c errors.h mit-copying.h delete_errs.h util.h delete.h
77directories.o: directories.c delete_errs.h util.h mit-copying.h \
78        directories.h errors.h
79errors.o: errors.c delete_errs.h mit-copying.h
80expunge.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
82lsdel.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
84pattern.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
86shell_regexp.o: shell_regexp.c shell_regexp.h mit-copying.h \
87        delete_errs.h errors.h
88stack.o: stack.c stack.h mit-copying.h delete_errs.h errors.h util.h
89undelete.o: undelete.c delete_errs.h pattern.h mit-copying.h util.h \
90        directories.h undelete.h shell_regexp.h errors.h
91util.o: util.c delete_errs.h util.h mit-copying.h directories.h \
92        errors.h
Note: See TracBrowser for help on using the repository browser.