]> diplodocus.org Git - nmh/blob - zotnet/Makefile.in
INSTALL never documented the etc/*.old thing. Documented the new etc/*.prev
[nmh] / zotnet / Makefile.in
1 #
2 # Makefile for zotnet subdirectory
3 #
4 # $Id$
5 #
6
7 SHELL = /bin/sh
8
9 srcdir = @srcdir@
10 VPATH = @srcdir@
11
12 LORDER = @LORDER@
13 TSORT = @TSORT@
14 RANLIB = @RANLIB@
15 LIBTOOL = @LIBTOOL@
16 GNU_LIBTOOL = @GNU_LIBTOOL@
17
18 # flags passed to recursive makes in subdirectories
19 MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \
20 CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
21 prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
22 etcdir='$(etcdir)' libdir='$(libdir)' mandir='$(mandir)' \
23 mailspool='$(mailspool)' sendmailpath='$(sendmailpath)' \
24 default_editor='$(default_editor)' default_pager='$(default_pager)'
25
26 # object files in libzot.a
27 OBJS = mts/mts.o mts/client.o
28
29 # auxiliary files
30 AUX = Makefile.in
31
32 # all files in this directory included in the distribution
33 DIST = $(AUX)
34
35 # subdirectories
36 SUBDIRS = mts
37
38 # ========= DEPENDENCIES FOR BUILDING AND INSTALLING ==========
39
40 all: all-recursive libzot.a
41
42 libzot.a: $(OBJS)
43 rm -f $@
44 if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
45 $(LIBTOOL) -static -c $(OBJS) -o $@ ; \
46 else \
47 ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)` ; \
48 $(RANLIB) $@ ; \
49 fi
50
51 all-recursive:
52 for subdir in $(SUBDIRS); do \
53 (cd $$subdir && $(MAKE) $(MAKEDEFS) all) || exit 1; \
54 done
55
56 install uninstall:
57 for subdir in $(SUBDIRS); do \
58 (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
59 done
60
61 # ========== DEPENDENCIES FOR CLEANUP ==========
62
63 mostlyclean: mostlyclean-recursive mostlyclean-local
64 clean: clean-recursive clean-local
65 distclean: distclean-recursive distclean-local
66 realclean: realclean-recursive realclean-local
67 superclean: superclean-recursive superclean-local
68
69 mostlyclean-local:
70 rm -f *~
71
72 clean-local: mostlyclean-local
73 rm -f libzot.a
74
75 distclean-local: clean-local
76 rm -f Makefile
77
78 realclean-local: distclean-local
79
80 superclean-local: realclean-local
81
82 mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive superclean-recursive:
83 for subdir in $(SUBDIRS); do \
84 target=`echo $@ | sed 's/-recursive//'`; \
85 (cd $$subdir && $(MAKE) $(MAKEDEFS) $$target) || exit 1; \
86 done
87
88 # ========== DEPENDENCIES FOR MAINTENANCE ==========
89
90 subdir = zotnet
91
92 Makefile: Makefile.in ../config.status
93 cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
94
95 distdir = ../`cat ../distname`/$(subdir)
96 nmhdist: $(DIST)
97 @echo "Copying distribution files in $(subdir)"
98 @for file in $(DIST); do \
99 cp -p $(srcdir)/$$file $(distdir); \
100 done
101 @for subdir in $(SUBDIRS); do \
102 mkdir $(distdir)/$$subdir; \
103 chmod 755 $(distdir)/$$subdir; \
104 (cd $$subdir && $(MAKE) $@) || exit 1; \
105 done
106