1 # config/Makefile for the Undernet IRC Daemon.
2 # Copyright (C) 1997, Carlo Wood <carlo@runaway.xs4all.nl>
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)
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.
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
19 #### Start of system configuration section. ####
25 #### End of system configuration section. ####
27 # Some versions of make give a warning when this is empty:
30 # These files need to be up to date when we are building the ircd
31 build: config.h setup.h
34 ${RM} -f .tmpconfig.h .tmpconfig
37 ${RM} -f .config setup.h stamp-h config.h .config.old \
38 config.cache config.log config.status Makefile config-sh \
41 maintainer-clean: distclean
42 ${RM} -f aclocal.m4 setup.h.in stamp-h.in configure
43 @echo Generating aclocal.m4...
45 @echo Generating setup.h.in...
47 @echo timestamp > stamp-h.in
48 @echo Generating configure...
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
57 config.h: Configure config-sh
58 @echo Generating config.h...
59 @CONFIG_BATCH=y ${SHELL} ./Configure || exit 1
60 @cd ../ircd; ${MAKE} Makefile
64 #==============================================================================
65 # Rules to automatically remake Configuration :
67 Makefile: config.status Makefile.in
68 @echo "recreating config/Makefile"
69 @CONFIG_FILES=Makefile CONFIG_HEADERS= ./config.status > /dev/null
71 aclocal.m4: acinclude.m4
72 @echo Generating aclocal.m4...
74 @aclocal || ( echo "NOT recreating 'aclocal.m4', you don't have 'aclocal'"; touch aclocal.m4 )
76 configure: configure.in aclocal.m4
77 @echo Generating configure...
79 @autoconf || ( echo "NOT recreating 'configure', you don't have 'autoconf'"; touch configure )
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...
85 @autoheader || ( echo "NOT recreating 'setup.h.in', you don't have 'autoheader'"; touch setup.h.in )
86 @echo timestamp > stamp-h.in
89 stamp-h: stamp-h.in config.status
90 @echo Generating setup.h...
91 @CONFIG_FILES= CONFIG_HEADERS=setup.h ./config.status
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)
98 config-sh: config-sh.in config.status
99 @echo Generating config-sh...
100 @CONFIG_FILES=config-sh CONFIG_HEADERS= ./config.status
102 Configure: Configure.in config.status
103 @echo Generating Configure...
104 @CONFIG_FILES=Configure CONFIG_HEADERS= ./config.status