source: trunk/third/nmh/mts/Makefile.in @ 12486

Revision 12486, 2.2 KB checked in by danw, 26 years ago (diff)
DESTDIR support
Line 
1#
2# Makefile for mts subdirectory
3#
4# $Id: Makefile.in,v 1.2 1999-02-13 00:41:08 danw Exp $
5#
6
7SHELL = /bin/sh
8
9srcdir = @srcdir@
10VPATH  = @srcdir@
11
12# flags passed to recursive makes in subdirectories
13MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \
14CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' DESTDIR='$(DESTDIR)' \
15prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
16etcdir='$(etcdir)' libdir='$(libdir)' mandir='$(mandir)' \
17mailspool='$(mailspool)' sendmailpath='$(sendmailpath)' \
18default_editor='$(default_editor)' default_pager='$(default_pager)'
19
20# auxiliary files
21AUX = Makefile.in
22
23# all files in this directory included in the distribution
24DIST = $(AUX)
25
26# subdirectories
27SUBDIRS = smtp sendmail mmdf
28
29# mail transport agent we are using
30MTS = @MTS@
31
32# ========= DEPENDENCIES FOR BUILDING AND INSTALLING ==========
33
34all install uninstall:
35        for subdir in $(MTS); do \
36          (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
37        done
38
39# ========== DEPENDENCIES FOR CLEANUP ==========
40
41mostlyclean: mostlyclean-recursive mostlyclean-local
42clean:       clean-recursive       clean-local
43distclean:   distclean-recursive   distclean-local
44realclean:   realclean-recursive   realclean-local
45superclean:  superclean-recursive  superclean-local
46
47mostlyclean-local:
48        rm -f *~
49
50clean-local: mostlyclean-local
51
52distclean-local: clean-local
53        rm -f Makefile
54
55realclean-local: distclean-local
56
57superclean-local: realclean-local
58
59mostlyclean-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
67subdir = mts
68
69Makefile: Makefile.in ../config.status
70        cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
71 
72distdir = ../`cat ../distname`/$(subdir)
73nmhdist: $(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
Note: See TracBrowser for help on using the repository browser.