2 # Makefile for mts subdirectory
12 # flags passed to recursive makes in subdirectories
13 MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \
14 CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
15 prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
16 etcdir='$(etcdir)' libdir='$(libdir)' mandir='$(mandir)' \
17 mailspool='$(mailspool)' sendmailpath='$(sendmailpath)' \
18 default_editor='$(default_editor)' default_pager='$(default_pager)'
23 # all files in this directory included in the distribution
27 SUBDIRS = smtp sendmail mmdf
29 # mail transport agent we are using
32 # ========= DEPENDENCIES FOR BUILDING AND INSTALLING ==========
34 all install uninstall:
35 for subdir in $(MTS); do \
36 (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
39 # ========== DEPENDENCIES FOR CLEANUP ==========
41 mostlyclean: mostlyclean-recursive mostlyclean-local
42 clean: clean-recursive clean-local
43 distclean: distclean-recursive distclean-local
44 realclean: realclean-recursive realclean-local
45 superclean: superclean-recursive superclean-local
50 clean-local: mostlyclean-local
52 distclean-local: clean-local
55 realclean-local: distclean-local
57 superclean-local: realclean-local
59 mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive superclean-recursive:
60 for subdir in $(SUBDIRS); do \
61 target=`echo $@ | sed 's/-recursive//'`; \
62 (cd $$subdir && $(MAKE) $(MAKEDEFS) $$target) || exit 1; \
65 # ========== DEPENDENCIES FOR MAINTENANCE ==========
69 Makefile: Makefile.in ../config.status
70 cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
72 distdir = ../`cat ../distname`/$(subdir)
74 @echo "Copying distribution files in $(subdir)"
75 @for file in $(DIST); do \
76 cp -p $(srcdir)/$$file $(distdir); \
78 @for subdir in $(SUBDIRS); do \
79 mkdir $(distdir)/$$subdir; \
80 chmod 755 $(distdir)/$$subdir; \
81 (cd $$subdir && $(MAKE) $@) || exit 1; \