File: Makefile.in

package info (click to toggle)
nmh 1.0.2-9
  • links: PTS
  • area: main
  • in suites: potato
  • size: 3,172 kB
  • ctags: 4,449
  • sloc: ansic: 50,696; sh: 1,799; makefile: 1,192; awk: 74; sed: 17
file content (189 lines) | stat: -rw-r--r-- 5,192 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
#
# Makefile for top level of nmh distribution
#
# $Id: Makefile.in,v 1.4 1999/09/26 17:45:56 ruud Exp $
#

# nmh version
VERSION = @VERSION@

SHELL = /bin/sh
@SET_MAKE@

srcdir = @srcdir@
VPATH  = @srcdir@

# ========== USER CONFIGURATION SECTION ==========
#
# If `make' is executed in the directory containing this Makefile,
# any changes made in this section will override the values of
# these parameters in makefiles in any of the subdirectories.

prefix      = @prefix@
exec_prefix = @exec_prefix@

# location of standard commands
bindir      = @bindir@

# location of support binaries and scripts
libdir      = @libdir@

# location of nmh configuration and formats files
etcdir      = @sysconfdir@

# location of man pages
mandir      = @mandir@

# location of incoming mail
mailspool   = @mailspool@

# location of mail transport agent
sendmailpath = @sendmailpath@

# default editor
default_editor = @editorpath@

# default pager
default_pager = @pagerpath@

CC       = @CC@
CPPFLAGS = @CPPFLAGS@
DEFS     = @DEFS@
CFLAGS   = @CFLAGS@
LDFLAGS  = @LDFLAGS@
LIBS     = @LIBS@ -llockfile          # ugly hardcoded reference to liblockfile
                                      # Ruud de Rooij <ruud@debian.org>
                                      # Sun, 28 Mar 1999 15:58:17 +0200

# ========== YOU SHOULDN'T HAVE TO CHANGE ANYTHING BELOW HERE ==========

# flags passed to recursive makes in subdirectories
MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \
CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
etcdir='$(etcdir)' libdir='$(libdir)' mandir='$(mandir)' \
mailspool='$(mailspool)' sendmailpath='$(sendmailpath)' \
default_editor='$(default_editor)' default_pager='$(default_pager)'

INSTALL         = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA    = @INSTALL_DATA@

.SUFFIXES:

# all files in this directory included in the distribution
DIST = README INSTALL MACHINES COPYRIGHT VERSION DIFFERENCES FAQ \
       TODO COMPLETION-ZSH COMPLETION-TCSH MAIL.FILTERING \
       ChangeLog install-sh mkinstalldirs Makefile.in aclocal.m4 \
       acconfig.h config.h.in configure.in configure stamp-h.in config.sub config.guess

# subdirectories in distribution
SUBDIRS = h config sbr zotnet mts uip etc man

# ========== DEPENDENCIES FOR BUILDING AND INSTALLING ==========

# default target
all: config.h Makefile all-recursive

all-recursive:
	for subdir in $(SUBDIRS); do \
	  (cd $$subdir && $(MAKE) $(MAKEDEFS) all) || exit 1; \
	done

install uninstall:
	for subdir in $(SUBDIRS); do \
	  (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
	done

# ========== DEPENDENCIES FOR CLEANUP ==========

mostlyclean: mostlyclean-recursive mostlyclean-local
clean:       clean-recursive       clean-local
distclean:   distclean-recursive   distclean-local
realclean:   realclean-recursive   realclean-local
superclean:  superclean-recursive  superclean-local

mostlyclean-local:
	rm -f *~

clean-local: mostlyclean-local

distclean-local: clean-local
	rm -f Makefile config.h config.status config.log config.cache stamp-h distname

realclean-local: distclean-local

superclean-local: realclean-local
	cd $(srcdir) && rm -f config.h.in stamp-h.in configure

mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive superclean-recursive:
	for subdir in $(SUBDIRS); do \
	  target=`echo $@ | sed 's/-recursive//'`; \
	  (cd $$subdir && $(MAKE) $(MAKEDEFS) $$target) || exit 1; \
	done

# ========== DEPENDENCIES FOR MAINTENANCE ==========

Makefile: Makefile.in config.status
	CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status

config.status: configure VERSION
	./config.status --recheck

configure: configure.in aclocal.m4
	cd $(srcdir) && autoconf

config.h: stamp-h
stamp-h: config.h.in config.status
	CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status

config.h.in: stamp-h.in
stamp-h.in: configure.in acconfig.h aclocal.m4
	cd $(srcdir) && autoheader
	echo > $@

# rebuild all autoconf files
reset:
	cd $(srcdir) && autoheader
	cd $(srcdir) && autoconf
	cd $(srcdir) && echo > stamp-h.in

# name of new nmh distribution tar file
tarfile = nmh-$(VERSION).tar.gz

# ftp directory location
ftpdir = /ftp/nmh

# file containing name of new nmh distribution
distname:
	@echo nmh-$(VERSION) > distname

# build nmh distribution
distdir = `cat distname`
nmhdist: $(DIST) distname
	@echo "Begin building nmh-$(VERSION) distribution"
	rm -rf $(distdir)
	mkdir $(distdir)
	@chmod 755 $(distdir)
	@echo "Copying distribution files in main directory"
	@for file in $(DIST); do \
	  cp -p $(srcdir)/$$file $(distdir); \
	done
	@for subdir in $(SUBDIRS); do \
	  mkdir $(distdir)/$$subdir; \
	  chmod 755 $(distdir)/$$subdir; \
	  (cd $$subdir && $(MAKE) $@) || exit 1; \
	done
	chmod -R a+r $(distdir)
	tar chf - $(distdir) | gzip -c > $(tarfile)
	rm -rf $(distdir) distname
	@echo "Done building nmh-$(VERSION) distribution"

# release a new nmh distribution into ftp directory
nmhrelease:
	rm -f $(ftpdir)/$(tarfile)
	rm -f $(ftpdir)/nmh.tar.gz
	mv $(tarfile) $(ftpdir)/$(tarfile)
	cd $(ftpdir) && ln -s $(tarfile) nmh.tar.gz
	cd $(ftpdir) && md5sum *.gz > MD5SUM