1 | # |
---|
2 | # Makefile for mts subdirectory |
---|
3 | # |
---|
4 | # $Id: Makefile.in,v 1.2 1999-02-13 00:41:08 danw Exp $ |
---|
5 | # |
---|
6 | |
---|
7 | SHELL = /bin/sh |
---|
8 | |
---|
9 | srcdir = @srcdir@ |
---|
10 | VPATH = @srcdir@ |
---|
11 | |
---|
12 | # flags passed to recursive makes in subdirectories |
---|
13 | MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \ |
---|
14 | CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' DESTDIR='$(DESTDIR)' \ |
---|
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)' |
---|
19 | |
---|
20 | # auxiliary files |
---|
21 | AUX = Makefile.in |
---|
22 | |
---|
23 | # all files in this directory included in the distribution |
---|
24 | DIST = $(AUX) |
---|
25 | |
---|
26 | # subdirectories |
---|
27 | SUBDIRS = smtp sendmail mmdf |
---|
28 | |
---|
29 | # mail transport agent we are using |
---|
30 | MTS = @MTS@ |
---|
31 | |
---|
32 | # ========= DEPENDENCIES FOR BUILDING AND INSTALLING ========== |
---|
33 | |
---|
34 | all install uninstall: |
---|
35 | for subdir in $(MTS); do \ |
---|
36 | (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \ |
---|
37 | done |
---|
38 | |
---|
39 | # ========== DEPENDENCIES FOR CLEANUP ========== |
---|
40 | |
---|
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 |
---|
46 | |
---|
47 | mostlyclean-local: |
---|
48 | rm -f *~ |
---|
49 | |
---|
50 | clean-local: mostlyclean-local |
---|
51 | |
---|
52 | distclean-local: clean-local |
---|
53 | rm -f Makefile |
---|
54 | |
---|
55 | realclean-local: distclean-local |
---|
56 | |
---|
57 | superclean-local: realclean-local |
---|
58 | |
---|
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; \ |
---|
63 | done |
---|
64 | |
---|
65 | # ========== DEPENDENCIES FOR MAINTENANCE ========== |
---|
66 | |
---|
67 | subdir = mts |
---|
68 | |
---|
69 | Makefile: Makefile.in ../config.status |
---|
70 | cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status |
---|
71 | |
---|
72 | distdir = ../`cat ../distname`/$(subdir) |
---|
73 | nmhdist: $(DIST) |
---|
74 | @echo "Copying distribution files in $(subdir)" |
---|
75 | @for file in $(DIST); do \ |
---|
76 | cp -p $(srcdir)/$$file $(distdir); \ |
---|
77 | done |
---|
78 | @for subdir in $(SUBDIRS); do \ |
---|
79 | mkdir $(distdir)/$$subdir; \ |
---|
80 | chmod 755 $(distdir)/$$subdir; \ |
---|
81 | (cd $$subdir && $(MAKE) $@) || exit 1; \ |
---|
82 | done |
---|
83 | |
---|