Remove RCS keywords, since they no longer work after git migration.
[mmh] / mts / Makefile.in
1 #
2 # Makefile for mts subdirectory
3 #
4
5 SHELL = /bin/sh
6
7 srcdir = @srcdir@
8 VPATH  = @srcdir@
9
10 # flags passed to recursive makes in subdirectories
11 MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \
12 CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
13 prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
14 etcdir='$(etcdir)' libdir='$(libdir)' mandir='$(mandir)' \
15 mailspool='$(mailspool)' sendmailpath='$(sendmailpath)' \
16 default_editor='$(default_editor)' default_pager='$(default_pager)'
17
18 LORDER = @LORDER@
19 TSORT  = @TSORT@
20 RANLIB = @RANLIB@
21 LIBTOOL = @LIBTOOL@
22 GNU_LIBTOOL = @GNU_LIBTOOL@
23
24 # object files that go into libmts.a
25 OBJS =  smtp/hosts.o smtp/smtp.o
26
27 # auxiliary files
28 AUX = Makefile.in
29
30 # all files in this directory included in the distribution
31 DIST = $(AUX)
32
33 # subdirectories
34 SUBDIRS = smtp
35
36 # mail transport agent we are using (currently always smtp)
37 # MTS = smtp
38 # DEPRECATED: smtp/sendmail functionality handled by mts.conf
39
40 # ========= DEPENDENCIES FOR BUILDING AND INSTALLING ==========
41
42 all: all-recursive libmts.a
43
44 all-recursive:
45         for subdir in $(SUBDIRS); do \
46           (cd $$subdir && $(MAKE) $(MAKEDEFS) all) || exit 1; \
47         done
48
49 libmts.a: $(OBJS)
50         rm -f $@
51         if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \
52           $(LIBTOOL) -static -c $(OBJS) -o $@  ; \
53         else \
54           ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)`  ; \
55           $(RANLIB) $@  ; \
56         fi 
57
58 install uninstall:
59
60 # ========== DEPENDENCIES FOR CLEANUP ==========
61
62 mostlyclean: mostlyclean-recursive mostlyclean-local
63 clean:       clean-recursive       clean-local
64 distclean:   distclean-recursive   distclean-local
65 realclean:   realclean-recursive   realclean-local
66 superclean:  superclean-recursive  superclean-local
67
68 mostlyclean-local:
69         rm -f *~
70
71 clean-local: mostlyclean-local
72         rm -f libmts.a
73 distclean-local: clean-local
74         rm -f Makefile
75
76 realclean-local: distclean-local
77
78 superclean-local: realclean-local
79
80 mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive superclean-recursive:
81         for subdir in $(SUBDIRS); do \
82           target=`echo $@ | sed 's/-recursive//'`; \
83           (cd $$subdir && $(MAKE) $(MAKEDEFS) $$target) || exit 1; \
84         done
85
86 # ========== DEPENDENCIES FOR LINT =================
87
88 lint:
89         for subdir in $(SUBDIRS); do \
90           ( cd $$subdir && $(MAKE) $(MAKEDEFS) lint ) || exit 1; \
91         done
92
93 # ========== DEPENDENCIES FOR MAINTENANCE ==========
94
95 subdir = mts
96
97 Makefile: Makefile.in ../config.status
98         cd .. && ./config.status $(subdir)/$@
99  
100 distdir = ../`cat ../distname`/$(subdir)
101 nmhdist: $(DIST)
102         @echo "Copying distribution files in $(subdir)"
103         @for file in $(DIST); do \
104           cp -p $(srcdir)/$$file $(distdir); \
105         done
106         @for subdir in $(SUBDIRS); do \
107           mkdir $(distdir)/$$subdir; \
108           chmod 755 $(distdir)/$$subdir; \
109           (cd $$subdir && $(MAKE) $@) || exit 1; \
110         done
111