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 root-clean:
45         @for i in '*.orig' '.*.orig' '\#*' '*~' '.*~' '*.bak' '.*.bak' core; do\
46                 echo "Removing $$i"; \
47                 REMOVE_FILES="`find . -name "$$i" -print`"; \
48                 test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \
49         done || true
50
51 sub-clean:
52         @for i in ${SUBDIRS}; do \
53                 echo "Cleaning $$i..."; \
54                 cd $$i; ${MAKE} clean; cd ..;\
55         done
56
57 clean: root-clean sub-clean
58
59 root-distclean: root-clean
60         @for i in '*.rej'; do \
61                 echo "Removing $$i"; \
62                 REMOVE_FILES="`find . -name "$$i" -print`"; \
63                 test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \
64         done || true
65
66 sub-distclean:
67         @for i in ${SUBDIRS}; do \
68                 echo "Dist-cleaning $$i..."; \
69                 cd $$i; ${MAKE} distclean; cd ..;\
70         done
71
72 distclean: root-distclean sub-distclean
73         ${RM} -f Makefile config.h config.log config.cache config.status \
74                 stamp-h
75
76 maintainer-clean: root-distclean
77         @for i in ${SUBDIRS}; do \
78                 echo "maintainer-cleaning $$i..."; \
79                 cd $$i; ${MAKE} maintainer-clean; cd ..;\
80         done
81
82 depend:
83         @for i in ${SUBDIRS}; do \
84                 echo "Making dependencies in $$i..."; \
85                 cd $$i; ${MAKE} depend; cd ..; \
86         done
87
88 install:
89         @for i in ${SUBDIRS}; do \
90                 echo "Installing $$i..."; \
91                 cd $$i; ${MAKE} install; cd ..; \
92         done
93
94 uninstall:
95         @for i in ${SUBDIRS}; do \
96                 echo "Uninstalling $$i..."; \
97                 cd $$i; ${MAKE} uninstall; cd ..; \
98         done
99
100 ${srcdir}/aclocal.m4: acinclude.m4
101         cd ${srcdir} && aclocal
102
103 ${srcdir}/configure: configure.in aclocal.m4
104         cd ${srcdir} && autoconf
105
106 # autoheader might not change config.h.in, so touch a stamp file.
107 ${srcdir}/config.h.in: stamp-h.in
108 ${srcdir}/stamp-h.in: configure.in aclocal.m4 acconfig.h
109         cd ${srcdir} && autoheader
110         echo timestamp > ${srcdir}/stamp-h.in
111
112 config.h: stamp-h
113 stamp-h: config.h.in config.status
114         ./config.status
115
116 Makefile: Makefile.in config.status
117         ./config.status
118
119 doc/Makefile: doc/Makefile.in config.status
120         ./config.status
121
122 ircd/Makefile: ircd/Makefile.in config.status
123         ./config.status
124
125 config.status: configure
126         ./config.status --recheck
127
128 # Some versions of 'make' do not support the .PHONY target :
129 FORCE:
130
131 # Indent all headers and source files:
132 indent:
133         @test "`indent --version`" = "GNU indent 2.1.0" || \
134           (echo "You need GNU indent 2.1.0; See doc/readme.indent" && exit -1);
135         VERSION_CONTROL=none indent include/*.h ircd/*.c
136
137 # do a cvs update
138 update:
139         cvs -z9 update