-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
139 lines (120 loc) · 4.38 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
# $Id$
#
# UNIX-Connect, a ZCONNECT(r) Transport and Gateway/Relay.
# Copyright (C) 1993-1994 Martin Husemann
# Copyright (C) 1995-1998 Christopher Creutzig
# Copyright (C) 1999-2000 Dirk Meyer
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# ------------------------------------------------------------------------
# Eine deutsche Zusammenfassung zum Copyright dieser Programme sowie der
# GNU General Public License finden Sie in der Datei README.1st.
# ------------------------------------------------------------------------
#
# Bugreports, suggestions for improvement, patches, ports to other systems
# etc. are welcome. Contact the maintainer by e-mail:
# [email protected] or snail-mail:
# Dirk Meyer, Im Grund 4, 34317 Habichtswald
#
# There is a mailing-list for user-support:
# write a mail with subject "Help" to
# for instructions on how to join this list.
#
include Makefile.global
# order is significant!
CDIRS = date hdlib lib gate @ONLINE_DIR@ @EXTRA_CDIR@
SUBDIRS = $(CDIRS) \
mail-and-news/$(MAIL) \
mail-and-news/$(NEWS) \
@SHELL_DIR@ etc
TARGETDIRS=$(BINDIR) $(ETCDIR) $(ETCDIR)/systems \
$(SPOOLDIR) $(SPOOLDIR)/locks $(SPOOLDIR)/logfiles \
$(SPOOLDIR)/error $(SPOOLDIR)/backin $(SPOOLDIR)/backout \
$(SPOOLDIR)/rsmtp
all:
for dir in $(SUBDIRS); do \
(cd $$dir && $(MAKE) -$(MAKEFLAGS) all) || exit $$? ; done
install:
for dir in $(TARGETDIRS); do \
if test ! -d $$dir; then \
mkdir $$dir; chown $(USER):$(GROUP) $$dir; fi \
done
if test ! -d $(SPOOLDIR)/netcall; then \
mkdir $(SPOOLDIR)/netcall; \
chown $(USER) $(SPOOLDIR)/netcall; fi
for dir in $(SUBDIRS); do \
(cd $$dir && $(MAKE) -$(MAKEFLAGS) install) || exit $$? ; done
install-strip:
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
uninstall:
for dir in $(SUBDIRS); do \
(cd $$dir && $(MAKE) -$(MAKEFLAGS) uninstall) || exit $$? ; done
@echo ""
@echo "If you don't want to install this package again"
@echo "then remove the following directorys:"
@echo "$(DESTDIR)"
@echo "$(ETCDIR)"
@echo "$(SPOOLDIR)"
clean:
-rm -f $(CLEANFILES)
for dir in $(SUBDIRS); do \
(cd $$dir && $(MAKE) -$(MAKEFLAGS) clean) || exit $$? ; done
mostlyclean: clean
distclean:
for dir in $(SUBDIRS) mail-and-news; do \
(cd $$dir && $(MAKE) -$(MAKEFLAGS) distclean) done
-rm -f $(CLEANFILES)
-rm -f Makefile.global Makefile helpers/subst
-rm -f config.cache config.log config.status confdefs.h
-rm -f include/sysdep.h include/policy.h
maintainer-clean:
cd hdlib && $(MAKE) -$(MAKEFLAGS) maintainer-clean
$(MAKE) -$(MAKEFLAGS) distclean
check:
for dir in hdlib gate; do \
(cd $$dir && $(MAKE) -$(MAKEFLAGS) check) || exit $$? ; done
newhash:
cd hdlib && $(MAKE) -$(MAKEFLAGS) newhash
dist:
$(MAKE) -$(MAKEFLAGS) distclean
cd helpers && $(MAKE) -$(MAKEFLAGS)
depend: all Makefile.global
for dir in $(CDIRS); do (cd $$dir; \
$(MAKE) -$(MAKEFLAGS) all; \
for i in *.c; do \
$(CPP) $(CPPFLAGS) -MM $$i; \
done >Makefile.depend; \
sed -e '/^# automatic depend/,$$d' Makefile >Makefile.new; \
echo "# automatic depend" >>Makefile.new; \
cat Makefile.depend >>Makefile.new; \
echo "# eof" >>Makefile.new; \
if ! diff Makefile Makefile.new; then \
mv -f Makefile.new Makefile; fi; \
rm -f Makefile.new Makefile.depend ) || exit $$? ; \
done
Makefile: Makefile.in config.status
CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
@echo "please call make again"
@exit 1
Makefile.global: Makefile.global.in config.status
CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
configure: configure.in # aclocal.m4
autoconf
config.status: configure
CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status --recheck
# eof