Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / Makefile.in
1 # Makefile for the Undernet IRC Daemon.
2 # Copyright (C) 1997, Carlo Wood <carlo@runaway.xs4all.nl>
3
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17 # 02111-1307, USA.
18
19 #### Start of system configuration section. ####
20
21 srcdir = @srcdir@
22 VPATH = @srcdir@
23
24 SHELL = @SHPROG@
25 RM = @RMPROG@
26 AWK = @AWK@
27 @SET_MAKE@
28 #### End of system configuration section. ####
29
30 SUBDIRS = doc ircd
31
32 all: build
33
34 .PHONY: server build depend install config update diff patch export update
35 # Some versions of make give a warning when this is empty:
36 .SUFFIXES: .dummy
37
38 build:
39         @for i in ${SUBDIRS}; do \
40                 echo "Building $$i..."; \
41                 cd $$i; ${MAKE} build; cd ..; \
42         done
43
44 config:
45         @echo "*************************************************************"
46         @echo "* The \"make config\" step is now DEPRECATED.  Most           *"
47         @echo "* server options are now configurable via the configuration *"
48         @echo "* file using F-lines; the rest are specified on the command *"
49         @echo "* line to \"./configure\".  To aid the transition, a shell    *"
50         @echo "* script has been provided to generate the necessary        *"
51         @echo "* configuration lines for you.  You may run this script by  *"
52         @echo "* typing \"tools/transition\"; please pay attention to its    *"
53         @echo "* output.  This message will be removed for the next major  *"
54         @echo "* release of ircu.                                          *"
55         @echo "*************************************************************"
56
57 root-clean:
58         @for i in '*.orig' '.*.orig' '\#*' '*~' '.*~' '*.bak' '.*.bak' core; do\
59                 echo "Removing $$i"; \
60                 REMOVE_FILES="`find . -name "$$i" -print`"; \
61                 test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \
62         done || true
63
64 sub-clean:
65         @for i in ${SUBDIRS}; do \
66                 echo "Cleaning $$i..."; \
67                 cd $$i; ${MAKE} clean; cd ..;\
68         done
69
70 clean: root-clean sub-clean
71
72 root-distclean: root-clean
73         @for i in '*.rej'; do \
74                 echo "Removing $$i"; \
75                 REMOVE_FILES="`find . -name "$$i" -print`"; \
76                 test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \
77         done || true
78
79 sub-distclean:
80         @for i in ${SUBDIRS}; do \
81                 echo "Dist-cleaning $$i..."; \
82                 cd $$i; ${MAKE} distclean; cd ..;\
83         done
84
85 distclean: root-distclean sub-distclean
86         ${RM} -f Makefile config.h config.log config.cache config.status \
87                 stamp-h
88
89 maintainer-clean: root-distclean
90         @for i in ${SUBDIRS}; do \
91                 echo "maintainer-cleaning $$i..."; \
92                 cd $$i; ${MAKE} maintainer-clean; cd ..;\
93         done
94
95 depend:
96         @for i in ${SUBDIRS}; do \
97                 echo "Making dependencies in $$i..."; \
98                 cd $$i; ${MAKE} depend; cd ..; \
99         done
100
101 install:
102         @for i in ${SUBDIRS}; do \
103                 echo "Installing $$i..."; \
104                 cd $$i; ${MAKE} install; cd ..; \
105         done
106
107 uninstall:
108         @for i in ${SUBDIRS}; do \
109                 echo "Uninstalling $$i..."; \
110                 cd $$i; ${MAKE} uninstall; cd ..; \
111         done
112
113 ${srcdir}/aclocal.m4: acinclude.m4
114         cd ${srcdir} && aclocal
115
116 ${srcdir}/configure: configure.in aclocal.m4
117         cd ${srcdir} && autoconf
118
119 # autoheader might not change config.h.in, so touch a stamp file.
120 ${srcdir}/config.h.in: stamp-h.in
121 ${srcdir}/stamp-h.in: configure.in aclocal.m4 acconfig.h
122         cd ${srcdir} && autoheader
123         echo timestamp > ${srcdir}/stamp-h.in
124
125 config.h: stamp-h
126 stamp-h: config.h.in config.status
127         ./config.status
128
129 Makefile: Makefile.in config.status
130         ./config.status
131
132 doc/Makefile: doc/Makefile.in config.status
133         ./config.status
134
135 ircd/Makefile: ircd/Makefile.in config.status
136         ./config.status
137
138 config.status: configure
139         ./config.status --recheck
140
141 # Some versions of 'make' do not support the .PHONY target :
142 FORCE:
143
144 # Indent all headers and source files:
145 indent:
146         @test "`indent --version`" = "GNU indent 2.1.0" || \
147           (echo "You need GNU indent 2.1.0; See doc/readme.indent" && exit -1);
148         VERSION_CONTROL=none indent include/*.h ircd/*.c
149
150 # do a cvs update
151 update:
152         cvs -z9 update