-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile.in
executable file
·176 lines (138 loc) · 4.65 KB
/
makefile.in
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
#
# @package_copyright@
#
# @configure_input@
#
.POSIX :
TARNAME = @PACKAGE_TARNAME@
VERSION = @PACKAGE_VERSION@
########################################################################
### No further configuration beyond this point.
########################################################################
.SUFFIXES :
A = .@LIBEXT@
O = .@OBJEXT@
E = @EXEEXT@
.SUFFIXES : .c $O $E
platform = @platform@
prefix = @prefix@
exec_prefix = @exec_prefix@
#
# Paths for supporting headers and libraries.
#
top_srcdir = @top_srcdir@
abs_top_srcdir = @top_srcdir@
SNERT_TARDIR = @rel_tardir@
SNERT_INCDIR = @rel_incdir@
SNERT_LIBDIR = @rel_libdir@
SRCDIR = @abs_srcdir@
SBINDIR = @sbindir@
TOPDIR = @abs_top_srcdir@
TARDIR = ${TOPDIR}/../
TARFILE = ${TARNAME}-${VERSION}'.'${BUILD}.tar.gz
TARNAME = @PACKAGE_TARNAME@
MAJOR = @package_major@
MINOR = @package_minor@
BUILD = `cat ${TOPDIR}/src/BUILD_ID.TXT`
VERSION = ${MAJOR}.${MINOR}
MD5SUM = @MD5SUM@
AUTOCONF = @AUTOCONF@
TAR_I = @TAR_I@
########################################################################
### No further configuration beyond this point.
########################################################################
.SUFFIXES :
O = .@OBJEXT@
E = @EXEEXT@
.SUFFIXES : .c $O $E
BUILD_DIRS = \
${TOPDIR}/src
CLEAN_DIRS = \
${TOPDIR}/src \
${TOPDIR}/package/FreeBSD \
${TOPDIR}/package/OpenBSD
.MAIN : build
build :
@for i in $(BUILD_DIRS); do ( cd $$i; ${MAKE} ${MAKEFLAGS} $@ ); done
clean : title _clean
@for i in $(BUILD_DIRS); do ( cd $$i; ${MAKE} ${MAKEFLAGS} $@ ); done
distclean : title _distclean
@for i in $(BUILD_DIRS); do ( cd $$i; ${MAKE} ${MAKEFLAGS} $@ ); done
realclean : title _realclean
@for i in $(BUILD_DIRS); do ( cd $$i; ${MAKE} ${MAKEFLAGS} $@ ); done
strip: build
@for i in $(BUILD_DIRS); do ( cd $$i; ${MAKE} ${MAKEFLAGS} $@ ); done
test : build
@cd $@; $(MAKE) $@
title :
@echo
@echo '***************************************************************'
@echo '==>' ${SRCDIR}
@echo '***************************************************************'
@echo
_clean :
-rm -rf autom4te.cache configure.lineno core *.core core.*
-find ./test \( -name 'tmp.*' -o -name '*.core' \) -exec rm -f \{\} \;
_clean_doc :
-rm -f doc/BarricadeMX.html doc/configure.html doc/install.html doc/glossary.html
-rm -f doc/license.html doc/manual.shtml doc/runtime.html doc/summary.html doc/smtpf.0
-rm -f doc/reply.html doc/syslog.html
_distclean : _clean _clean_doc
-rm -f examples/smtpf.cf examples/startup.sh examples/netbsd.rcd
-rm -f configure~ config.log config.status install.sh makefile MANIFEST.TXT
cd package/FreeBSD; make distclean
cd package/OpenBSD; make distclean
_realclean : _distclean
-rm -f configure
next-id:
expr `cat ${TOPDIR}/src/BUILD_ID.TXT` + 1 >${TOPDIR}/src/BUILD_ID.TXT
@echo '***************************************************************'
@echo 'Build number now: ' `cat src/BUILD_ID.TXT`
@echo '***************************************************************'
# For Windows builds:
#
# $ ./configure --enable-mingw
# $ make clean build
# $ DESTDIR=d:/stage/ make install
#
install: build install.sh
-@DESTDIR="${DESTDIR}" sh install.sh
install.sh: install.sh.in config.status
./config.status install.sh
config.status : configure
./configure
configure : configure.in acsite.m4
${AUTOCONF} -f
makefile: makefile.in config.status
./config.status makefile
list:
tar -zvtf ${SNERT_TARDIR}/${TARFILE}
pack: next-id tar
docs: _clean_doc reply.html.in syslog.html.in
./config.status
# doc/reply.html.in: src/number_msg.txt doc/reply-header.html doc/syslog-footer.html doc/reply.awk doc/reply.sh
reply.html.in:
@echo generating reply.html...
cd doc; sh reply.sh
doc/reply.html: doc/reply.html.in
./config.status doc/reply.html
# doc/syslog.html.in: src/number_msg.txt doc/syslog-header.html doc/syslog-footer.html doc/syslog.awk doc/syslog.sh
syslog.html.in:
@echo generating syslog.html...
cd doc; sh syslog.sh
doc/syslog.html: doc/syslog.html.in
./config.status doc/syslog.html
tar: MANIFEST.TXT doc/manual.shtml doc/reply.html doc/syslog.html
@echo
@echo '***************************************************************'
@echo
echo '${VERSION}.'`cat src/BUILD_ID.TXT` >VERSION.TXT
echo '${TARNAME}-${VERSION}.tar.gz' >FILE.TXT
tar -C ${SNERT_TARDIR} ${TAR_I} MANIFEST.TXT -zcf ${SNERT_TARDIR}/${TARFILE}
@echo
@echo '***************************************************************'
@cd ${SNERT_TARDIR}; ${MD5SUM} ${TARFILE} | tee com/snert/src/${TARNAME}/${TARNAME}.md5
@echo '***************************************************************'
@cd $(SNERT_TARDIR); wc -c $(TARFILE)
@echo '***************************************************************'
@echo