forked from ifax/HylaFAX
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
344 lines (324 loc) · 8.55 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
#!smake
# $Id$
#
# HylaFAX Facsimile Software
#
# Copyright (c) 1988-1996 Sam Leffler
# Copyright (c) 1991-1996 Silicon Graphics, Inc.
# HylaFAX is a trademark of Silicon Graphics
#
# Permission to use, copy, modify, distribute, and sell this software and
# its documentation for any purpose is hereby granted without fee, provided
# that (i) the above copyright notices and this permission notice appear in
# all copies of the software and related documentation, and (ii) the names of
# Sam Leffler and Silicon Graphics may not be used in any advertising or
# publicity relating to the software without the specific, prior written
# permission of Sam Leffler and Silicon Graphics.
#
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
#
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
#
#
# @WARNING@
#
# VERSION: @VERSION@
# DATE: @DATE@
# TARGET: @TARGET@
# CCOMPILER: @CCOMPILER@
# CXXCOMPILER: @CXXCOMPILER@
#
COMMONPREF=fax
DEPTH = .
@MAKEINCLUDE@ @MAKELQUOTE@defs@MAKERQUOTE@
SRCDIR = ${TOPSRCDIR}/${DEPTH}
DSODIRS = libhylafax
SRCDIRS = ${DSODIRS} \
util \
faxalter \
faxcover \
faxd \
faxmail \
faxrm \
faxstat \
hfaxd \
sendfax \
sendpage
DIRS= ${SRCDIRS} \
config \
etc \
man
TARGETS=hylafax
default all ${TARGETS}:
@${MAKE} -f ${MAKEFILE} dirs
@MAKEINCLUDE@ @MAKELQUOTE@rules@MAKERQUOTE@
dirs::
${ECHO} "= "port; cd port; ${MAKE} || exit $?;
@if [ "@REGEX@" = yes ]; then \
${ECHO} "= "regex; cd regex; ${MAKE} || exit $?; \
else \
true; \
fi
@for i in ${DIRS}; do \
(${ECHO} "= "$$i; cd $$i; ${MAKE}) || exit $?; \
done
@if [ "@SGI2FAX@" = yes ]; then \
${ECHO} "= "sgi2fax; cd sgi2fax; ${MAKE} || exit $?; \
else \
true; \
fi
@if [ "@DPS@" = yes ]; then \
${ECHO} "= "dps; cd dps; ${MAKE} || exit $?; \
else \
true; \
fi
@if [ "@IMP@" = yes ]; then \
${ECHO} "= "imp; cd imp; ${MAKE} || exit $?; \
else \
true; \
fi
@if [ "@GS@" = yes ]; then \
${ECHO} "= "gs; cd gs; ${MAKE} || exit $?; \
else \
true; \
fi
@if [ "@NLS@" = yes ]; then \
${ECHO} "= "po; cd po; ${MAKE} || exit $?; \
else \
true; \
fi
@${ECHO} "= "pkg; cd pkg; ${MAKE} || exit $?
depend::
${ECHO} "= "port; cd port; ${MAKE} depend;
@if [ "@REGEX@" = yes ]; then \
${ECHO} "= "regex; cd regex; ${MAKE} depend; \
else \
true; \
fi
@for i in ${DIRS}; do \
(${ECHO} "= "$$i; cd $$i; ${MAKE} depend); \
done
@if [ "@SGI2FAX@" = yes ]; then \
${ECHO} "= "sgi2fax; cd sgi2fax; ${MAKE} depend; \
else \
true; \
fi
clean::
${ECHO} "= "port; cd port; ${MAKE} clean;
@if [ "@REGEX@" = yes ]; then \
${ECHO} "= "regex; cd regex; ${MAKE} clean; \
else \
true; \
fi
@for i in ${DIRS}; do \
(${ECHO} "= "$$i; cd $$i; ${MAKE} clean); \
done
@if [ "@SGI2FAX@" = yes ]; then \
${ECHO} "= "sgi2fax; cd sgi2fax; ${MAKE} clean; \
else \
true; \
fi
@if [ "@DSO@" != no ]; then \
for i in ${DSODIRS}; do \
(${ECHO} "= "$$i; cd $$i; ${MAKE} cleanDSO); \
done; \
else \
true; \
fi
@if [ "@DPS@" = yes ]; then \
${ECHO} "= "dps; cd dps; ${MAKE} clean; \
else \
true; \
fi
@if [ "@IMP@" = yes ]; then \
${ECHO} "= "imp; cd imp; ${MAKE} clean; \
else \
true; \
fi
@if [ "@GS@" = yes ]; then \
${ECHO} "= "gs; cd gs; ${MAKE} clean; \
else \
true; \
fi
@${ECHO} "= "pkg; cd pkg; ${MAKE} clean
clobber::
(cd util; ${MAKE} clobberconfig)
(cd etc; ${MAKE} clobberconfig)
(cd faxcover; ${MAKE} clobberconfig)
${ECHO} "= "port; cd port; ${MAKE} clobberconfig; ${MAKE} clobber;
@if [ "@REGEX@" = yes ]; then \
${ECHO} "= "regex; cd regex; ${MAKE} clobber; \
else \
true; \
fi
@if [ "@DSO@" != no ]; then \
for i in ${DSODIRS}; do \
(${ECHO} "= "$$i; cd $$i; ${MAKE} cleanDSO); \
done; \
else \
true; \
fi
@for i in ${DSODIRS}; do \
(${ECHO} "= "$$i; cd $$i; ${MAKE} clobberconfig); \
done
@for i in ${DIRS}; do \
(${ECHO} "= "$$i; cd $$i; ${MAKE} clobber); \
done
@if [ "@NLS@" = yes ]; then \
${ECHO} "= "po; cd po; ${MAKE} clobber; \
else \
true; \
fi
@if [ "@SGI2FAX@" = yes ]; then \
${ECHO} "= "sgi2fax; cd sgi2fax; ${MAKE} clobber; \
else \
true; \
fi
-${RM} -f Makedepend port.h config.h config.log config.cache
distclean: clobber
@if [ "@DPS@" = yes ]; then \
${ECHO} "= "dps; cd dps; ${MAKE} distclean; \
else \
true; \
fi
@if [ "@IMP@" = yes ]; then \
${ECHO} "= "imp; cd imp; ${MAKE} distclean; \
else \
true; \
fi
@if [ "@GS@" = yes ]; then \
${ECHO} "= "gs; cd gs; ${MAKE} distclean; \
else \
true; \
fi
(cd pkg; ${MAKE} distclean)
-${RM} -f defs rules Makefile
update-po::
@if [ "@NLS@" != yes ]; then \
echo "NLS Not enabled"; false; \
fi
@for i in ${SRCDIRS}; do \
(${ECHO} "= "$$i; cd $$i; ${MAKE} messages.po); \
done
(cd po; ${MAKE} hylafax.pot)
makeClientDirs::
-${INSTALL} -u ${SYSUSER} -g ${SYSGROUP} -m ${DIRMODE} \
-idb hylafax.sw.client -dir \
${BIN} ${LIBDATA} ${LIBEXEC} ${SBIN}
makeServerDirs::
-${INSTALL} -u ${SYSUSER} -g ${SYSGROUP} -m ${DIRMODE} \
-idb hylafax.sw.server -dir ${SBIN};
-${INSTALL} -u ${FAXUSER} -g ${FAXGROUP} -m ${DIRMODE} \
-idb hylafax.sw.server -dir ${SPOOL}
-${INSTALL} -u ${FAXUSER} -g ${FAXGROUP} -m ${DIRMODE} \
-idb hylafax.sw.server -dir \
-F ${SPOOL} bin client config dev etc info log recvq status
-${INSTALL} -u ${FAXUSER} -g ${FAXGROUP} -m 700 \
-idb hylafax.sw.server -dir \
-F ${SPOOL} sendq doneq docq tmp pollq archive
makeDirs: makeClientDirs makeServerDirs
makeDevices::
${INSTALL} -u ${FAXUSER} -g ${FAXGROUP} -m 600 -fifo \
-idb hylafax.sw.server -F ${SPOOL} FIFO
install: makeDirs makeDevices
${INSTALL} -m 444 -F ${SPOOL} -idb hylafax.sw.server \
-src ${SRCDIR}/COPYRIGHT -O COPYRIGHT
@if [ "@REGEX@" = yes ]; then \
${ECHO} "= "regex; cd regex; ${MAKE} install || exit 1; \
else \
true; \
fi
@for i in ${DIRS}; do \
(${ECHO} "= "$$i; cd $$i; ${MAKE} install) || exit 1; \
done
@if [ "@SGI2FAX@" = yes ]; then \
${ECHO} "= "sgi2fax; cd sgi2fax; ${MAKE} install || exit 1; \
else \
true; \
fi
@if [ "@DSO@" != no ]; then \
for i in ${DSODIRS}; do \
(${ECHO} "= "$$i; cd $$i; ${MAKE} installDSO) || exit 1; \
done; \
else \
true; \
fi
@${ECHO} "= "etc; cd etc; ${MAKE} installSysVInit;
@if [ "@DPS@" = yes ]; then \
${ECHO} "= "dps; cd dps; ${MAKE} install || exit 1; \
else \
true; \
fi
@if [ "@IMP@" = yes ]; then \
${ECHO} "= "imp; cd imp; ${MAKE} install || exit 1; \
else \
true; \
fi
@if [ "@GS@" = yes ]; then \
${ECHO} "= "gs; cd gs; ${MAKE} install || exit 1; \
else \
true; \
fi
@if [ "@NLS@" = yes ]; then \
${ECHO} "= po"; cd po; ${MAKE} install || exit 1; \
else \
true; \
fi
CLIENTDIRS=\
libhylafax \
faxalter \
faxcover \
faxmail \
faxrm \
faxstat \
sendfax \
sendpage
installClient: makeClientDirs
@for i in ${CLIENTDIRS}; do \
(${ECHO} "= "$$i; cd $$i; ${MAKE} install) || exit 1; \
done
@if [ "@SGI2FAX@" = yes ]; then \
${ECHO} "= "sgi2fax; cd sgi2fax; ${MAKE} install || exit 1; \
else \
true; \
fi
@for i in etc util man; do \
(${ECHO} "= "$$i; cd $$i; ${MAKE} installClient) || exit 1; \
done
@if [ "@DSO@" != no ]; then \
for i in libhylafax; do \
(${ECHO} "= "$$i; cd $$i; ${MAKE} installDSO) || exit 1; \
done; \
else \
true; \
fi
@if [ "@NLS@" = yes ]; then \
(${ECHO} "= po"; cd po; ${MAKE} installClient) || exit 1; \
else \
true; \
fi
package::
@${ECHO} "= "pkg; cd pkg; ${MAKE} package
product::
test -d dist || ${MKDIR} dist
${RM} -f dist/rawidb
SRC=`${PWDCMD}` RAWIDB=`${PWDCMD}`/dist/rawidb ${MAKE} install
${RM} -f dist/idb
${SORT} -u +4 dist/rawidb > dist/idb
${GENDIST} -v -dist dist -idb dist/idb -sbase `pwd` -spec ${SRCDIR}/dist/hylafax.dist
dist.inst:
VERSION="v`cat ${SRCDIR}/VERSION``awk '{print $$3}' ${SRCDIR}/dist/hylafax.alpha`"; \
rm -f $$VERSION.inst.tar; \
tar cf $$VERSION.inst.tar \
dist/hylafax \
dist/hylafax.idb \
dist/hylafax.sw \
dist/hylafax.man
@MAKEINCLUDE@ @MAKELQUOTE@${SRCDIR}/distrules@MAKERQUOTE@