]> diplodocus.org Git - nmh/blob - Makefile.in
Added back memory options for AIX to increase available memory.
[nmh] / Makefile.in
1 #
2 # Makefile for top level of nmh distribution
3 #
4 # $Id$
5 #
6
7 # nmh version
8 VERSION = @VERSION@
9
10 SHELL = /bin/sh
11 @SET_MAKE@
12
13 srcdir = @srcdir@
14 VPATH = @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
22 prefix = @prefix@
23 exec_prefix = @exec_prefix@
24
25 # location of standard commands
26 bindir = @bindir@
27
28 # location of support binaries and scripts
29 libdir = @libdir@
30
31 # location of nmh configuration and formats files
32 etcdir = @sysconfdir@
33
34 # location of man pages
35 mandir = @mandir@
36
37 # location of incoming mail
38 mailspool = @mailspool@
39
40 # location of mail transport agent
41 sendmailpath = @sendmailpath@
42
43 # default editor
44 default_editor = @editorpath@
45
46 # default pager
47 default_pager = @pagerpath@
48
49 CC = @CC@
50 CPPFLAGS = @CPPFLAGS@
51 DEFS = @DEFS@
52 CFLAGS = @CFLAGS@
53 LDFLAGS = @LDFLAGS@
54 LIBS = @LIBS@
55
56 # ========== YOU SHOULDN'T HAVE TO CHANGE ANYTHING BELOW HERE ==========
57
58 # flags passed to recursive makes in subdirectories
59 MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \
60 CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
61 prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
62 etcdir='$(etcdir)' libdir='$(libdir)' mandir='$(mandir)' \
63 mailspool='$(mailspool)' sendmailpath='$(sendmailpath)' \
64 default_editor='$(default_editor)' default_pager='$(default_pager)'
65
66 INSTALL = @INSTALL@
67 INSTALL_PROGRAM = @INSTALL_PROGRAM@
68 INSTALL_DATA = @INSTALL_DATA@
69
70 .SUFFIXES:
71
72 # all files in this directory included in the distribution
73 DIST = ChangeLog COPYRIGHT INSTALL MACHINES README VERSION ChangeLog install-sh\
74 mkinstalldirs Makefile.in aclocal.m4 acconfig.h config.h.in \
75 configure.in configure stamp-h.in config.sub config.guess
76
77 # subdirectories in distribution
78 SUBDIRS = h config sbr zotnet mts uip etc man docs
79
80 # ========== DEPENDENCIES FOR BUILDING AND INSTALLING ==========
81
82 # default target
83 all: config.h Makefile all-recursive
84
85 all-recursive:
86 for subdir in $(SUBDIRS); do \
87 (cd $$subdir && $(MAKE) $(MAKEDEFS) all) || exit 1; \
88 done
89
90 install uninstall:
91 for subdir in $(SUBDIRS); do \
92 (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
93 done
94
95 # ========== DEPENDENCIES FOR CLEANUP ==========
96
97 mostlyclean: mostlyclean-recursive mostlyclean-local
98 clean: clean-recursive clean-local
99 distclean: distclean-recursive distclean-local
100 realclean: realclean-recursive realclean-local
101 superclean: superclean-recursive superclean-local
102
103 mostlyclean-local:
104 rm -f *~
105
106 clean-local: mostlyclean-local
107
108 distclean-local: clean-local
109 rm -f Makefile config.h config.status config.log config.cache stamp-h distname
110
111 realclean-local: distclean-local
112
113 superclean-local: realclean-local
114 cd $(srcdir) && rm -f config.h.in stamp-h.in configure
115
116 mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive superclean-recursive:
117 for subdir in $(SUBDIRS); do \
118 target=`echo $@ | sed 's/-recursive//'`; \
119 (cd $$subdir && $(MAKE) $(MAKEDEFS) $$target) || exit 1; \
120 done
121
122 # ========== DEPENDENCIES FOR MAINTENANCE ==========
123
124 lint:
125 for subdir in $(SUBDIRS); do \
126 ( cd $$subdir && $(MAKE) $(MAKEDEFS) lint ) || exit 1; \
127 done
128
129 # ========== DEPENDENCIES FOR MAINTENANCE ==========
130
131 Makefile: Makefile.in config.status
132 CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
133
134 config.status: configure VERSION
135 ./config.status --recheck
136
137 configure: configure.in aclocal.m4
138 cd $(srcdir) && autoconf
139
140 config.h: stamp-h
141 stamp-h: config.h.in config.status
142 CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
143
144 config.h.in: stamp-h.in
145 stamp-h.in: configure.in acconfig.h aclocal.m4
146 cd $(srcdir) && autoheader
147 date > $@
148
149 # rebuild all autoconf files
150 reset:
151 cd $(srcdir) && autoheader
152 cd $(srcdir) && autoconf
153 cd $(srcdir) && date > stamp-h.in
154
155 # name of new nmh distribution tar file
156 tarfile = nmh-$(VERSION).tar.gz
157
158 # ftp directory location
159 ftpdir = /ftp/nmh
160
161 # file containing name of new nmh distribution
162 distname:
163 @echo nmh-$(VERSION) > distname
164
165 # build nmh distribution
166 distdir = `cat distname`
167 nmhdist: $(DIST) distname
168 @echo "Begin building nmh-$(VERSION) distribution"
169 rm -rf $(distdir)
170 mkdir $(distdir)
171 @chmod 755 $(distdir)
172 @echo "Copying distribution files in main directory"
173 @for file in $(DIST); do \
174 cp -p $(srcdir)/$$file $(distdir); \
175 done
176 @for subdir in $(SUBDIRS); do \
177 mkdir $(distdir)/$$subdir; \
178 chmod 755 $(distdir)/$$subdir; \
179 (cd $$subdir && $(MAKE) $@) || exit 1; \
180 done
181 chmod -R a+r $(distdir)
182 tar chf - $(distdir) | gzip -c > $(tarfile)
183 rm -rf $(distdir) distname
184 @echo "Done building nmh-$(VERSION) distribution"
185
186 # release a new nmh distribution into ftp directory
187 nmhrelease:
188 rm -f $(ftpdir)/$(tarfile)
189 rm -f $(ftpdir)/nmh.tar.gz
190 mv $(tarfile) $(ftpdir)/$(tarfile)
191 cd $(ftpdir) && ln -s $(tarfile) nmh.tar.gz
192 cd $(ftpdir) && md5sum *.gz > MD5SUM
193