source: trunk/third/nmh/Makefile.in @ 14040

Revision 14040, 4.7 KB checked in by danw, 25 years ago (diff)
remove configure-rebuilding rule
Line 
1#
2# Makefile for top level of nmh distribution
3#
4# $Id: Makefile.in,v 1.5 1999-12-01 16:31:01 danw Exp $
5#
6
7# nmh version
8VERSION = @VERSION@
9
10SHELL = /bin/sh
11@SET_MAKE@
12
13srcdir = @srcdir@
14VPATH  = @srcdir@
15
16# ========== USER CONFIGURATION SECTION ==========
17#
18# If `make' is executed in the directory containing this Makefile,
19# any changes made in this section will override the values of
20# these parameters in makefiles in any of the subdirectories.
21 
22prefix      = @prefix@
23exec_prefix = @exec_prefix@
24
25# location of standard commands
26bindir      = @bindir@
27
28# location of support binaries and scripts
29libdir      = @libexecdir@
30
31# location of nmh configuration and formats files
32etcdir      = /usr/athena/etc
33
34# location of man pages
35mandir      = @mandir@
36 
37# location of incoming mail
38mailspool   = @mailspool@
39
40# location of mail transport agent
41sendmailpath = @sendmailpath@
42
43# default editor
44default_editor = @editorpath@
45
46# default pager
47default_pager = @pagerpath@
48
49CC       = @CC@
50CPPFLAGS = @CPPFLAGS@
51DEFS     = @DEFS@
52CFLAGS   = @CFLAGS@
53LDFLAGS  = @LDFLAGS@
54LIBS     = @LIBS@
55 
56# ========== YOU SHOULDN'T HAVE TO CHANGE ANYTHING BELOW HERE ==========
57
58# flags passed to recursive makes in subdirectories
59MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \
60CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' DESTDIR='$(DESTDIR)' \
61prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
62etcdir='$(etcdir)' libdir='$(libdir)' mandir='$(mandir)' \
63mailspool='$(mailspool)' sendmailpath='$(sendmailpath)' \
64default_editor='$(default_editor)' default_pager='$(default_pager)'
65
66INSTALL         = @INSTALL@
67INSTALL_PROGRAM = @INSTALL_PROGRAM@
68INSTALL_DATA    = @INSTALL_DATA@
69
70.SUFFIXES:
71
72# all files in this directory included in the distribution
73DIST = README INSTALL MACHINES COPYRIGHT VERSION DIFFERENCES FAQ \
74       TODO ZSH.COMPLETION MAIL.FILTERING ChangeLog install-sh \
75       mkinstalldirs Makefile.in aclocal.m4 acconfig.h config.h.in \
76       configure.in configure stamp-h.in
77
78# subdirectories in distribution
79SUBDIRS = h config sbr zotnet mts uip etc man
80
81# ========== DEPENDENCIES FOR BUILDING AND INSTALLING ==========
82
83# default target
84all: config.h Makefile all-recursive
85
86all-recursive:
87        for subdir in $(SUBDIRS); do \
88          (cd $$subdir && $(MAKE) $(MAKEDEFS) all) || exit 1; \
89        done
90
91install uninstall:
92        for subdir in $(SUBDIRS); do \
93          (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
94        done
95
96# ========== DEPENDENCIES FOR CLEANUP ==========
97
98mostlyclean: mostlyclean-recursive mostlyclean-local
99clean:       clean-recursive       clean-local
100distclean:   distclean-recursive   distclean-local
101realclean:   realclean-recursive   realclean-local
102superclean:  superclean-recursive  superclean-local
103
104mostlyclean-local:
105        rm -f *~
106
107clean-local: mostlyclean-local
108
109distclean-local: clean-local
110        rm -f Makefile config.h config.status config.log config.cache stamp-h distname
111
112realclean-local: distclean-local
113
114superclean-local: realclean-local
115        cd $(srcdir) && rm -f config.h.in stamp-h.in configure
116
117mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive superclean-recursive:
118        for subdir in $(SUBDIRS); do \
119          target=`echo $@ | sed 's/-recursive//'`; \
120          (cd $$subdir && $(MAKE) $(MAKEDEFS) $$target) || exit 1; \
121        done
122
123# ========== DEPENDENCIES FOR MAINTENANCE ==========
124
125Makefile: Makefile.in config.status
126        CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
127
128config.status: configure VERSION
129        ./config.status --recheck
130
131config.h: stamp-h
132stamp-h: config.h.in config.status
133        CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
134
135# rebuild all autoconf files
136reset:
137        cd $(srcdir) && autoheader
138        cd $(srcdir) && autoconf
139        cd $(srcdir) && echo > stamp-h.in
140
141# name of new nmh distribution tar file
142tarfile = nmh-$(VERSION).tar.gz
143
144# ftp directory location
145ftpdir = /ftp/nmh
146
147# file containing name of new nmh distribution
148distname:
149        @echo nmh-$(VERSION) > distname
150
151# build nmh distribution
152distdir = `cat distname`
153nmhdist: $(DIST) distname
154        @echo "Begin building nmh-$(VERSION) distribution"
155        rm -rf $(distdir)
156        mkdir $(distdir)
157        @chmod 755 $(distdir)
158        @echo "Copying distribution files in main directory"
159        @for file in $(DIST); do \
160          cp -p $(srcdir)/$$file $(distdir); \
161        done
162        @for subdir in $(SUBDIRS); do \
163          mkdir $(distdir)/$$subdir; \
164          chmod 755 $(distdir)/$$subdir; \
165          (cd $$subdir && $(MAKE) $@) || exit 1; \
166        done
167        chmod -R a+r $(distdir)
168        tar chf - $(distdir) | gzip -c > $(tarfile)
169        rm -rf $(distdir) distname
170        @echo "Done building nmh-$(VERSION) distribution"
171
172# release a new nmh distribution into ftp directory
173nmhrelease:
174        rm -f $(ftpdir)/$(tarfile)
175        rm -f $(ftpdir)/nmh.tar.gz
176        mv $(tarfile) $(ftpdir)/$(tarfile)
177        cd $(ftpdir) && ln -s $(tarfile) nmh.tar.gz
178        cd $(ftpdir) && md5sum *.gz > MD5SUM
179
Note: See TracBrowser for help on using the repository browser.