Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / config / Makefile.in
1 # config/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 SHELL=@SHPROG@
22 RM=@RMPROG@
23 TOUCH=touch
24 @SET_MAKE@
25 #### End of system configuration section. ####
26
27 # Some versions of make give a warning when this is empty:
28 .SUFFIXES: .dummy
29
30 # These files need to be up to date when we are building the ircd
31 build: config.h setup.h
32
33 clean:
34         ${RM} -f .tmpconfig.h .tmpconfig
35
36 distclean: clean
37         ${RM} -f .config setup.h stamp-h config.h .config.old \
38                 config.cache config.log config.status Makefile config-sh \
39                 Configure
40
41 maintainer-clean: distclean
42         ${RM} -f aclocal.m4 setup.h.in stamp-h.in configure
43         @echo Generating aclocal.m4...
44         aclocal
45         @echo Generating setup.h.in...
46         autoheader
47         @echo timestamp > stamp-h.in
48         @echo Generating configure...
49         autoconf
50
51 config: configure setup.h.in config.status Configure FORCE
52         @CONFIG_BATCH=n ${SHELL} ./Configure || exit 1
53         @# Allow the use of non-GNU make with 'make config':
54         @cd ../ircd; ${MAKE} Makefile
55         @cd ../doc; ${MAKE} Makefile
56
57 config.h: Configure config-sh
58         @echo Generating config.h...
59         @CONFIG_BATCH=y ${SHELL} ./Configure || exit 1
60         @cd ../ircd; ${MAKE} Makefile
61
62 FORCE:
63
64 #==============================================================================
65 # Rules to automatically remake Configuration :
66
67 Makefile: config.status Makefile.in
68         @echo "recreating config/Makefile"
69         @CONFIG_FILES=Makefile CONFIG_HEADERS= ./config.status > /dev/null
70
71 aclocal.m4: acinclude.m4
72         @echo Generating aclocal.m4...
73         @echo aclocal
74         @aclocal || ( echo "NOT recreating 'aclocal.m4', you don't have 'aclocal'"; touch aclocal.m4 )
75
76 configure: configure.in aclocal.m4
77         @echo Generating configure...
78         @echo autoconf
79         @autoconf || ( echo "NOT recreating 'configure', you don't have 'autoconf'"; touch configure )
80
81 setup.h.in: stamp-h.in
82 stamp-h.in: configure.in acconfig.h setup.h.top aclocal.m4 #setup.h.bot
83         @echo Generating setup.h.in...
84         @echo autoheader
85         @autoheader || ( echo "NOT recreating 'setup.h.in', you don't have 'autoheader'"; touch setup.h.in )
86         @echo timestamp > stamp-h.in
87
88 setup.h: stamp-h
89 stamp-h: stamp-h.in config.status
90         @echo Generating setup.h...
91         @CONFIG_FILES= CONFIG_HEADERS=setup.h ./config.status
92
93 config.status: configure
94         @echo Generating config.status...
95         @CONFIG_FILES= CONFIG_HEADERS= ./config.status --recheck || \
96                 (./configure && ${TOUCH} ../doc/stamp-m ../ircd/stamp-m)
97
98 config-sh: config-sh.in config.status
99         @echo Generating config-sh...
100         @CONFIG_FILES=config-sh CONFIG_HEADERS= ./config.status
101
102 Configure: Configure.in config.status
103         @echo Generating Configure...
104         @CONFIG_FILES=Configure CONFIG_HEADERS= ./config.status