X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=Makefile.in;h=de888c90cf92d1ab8f9f76b4cfb87699be2d417d;hp=f511a011679ae7bdba4454a030657f3adc0c5259;hb=refs%2Fheads%2Fupstream-ssl;hpb=30cecbdf7e6810db9c7204262ddff70755d761bb diff --git a/Makefile.in b/Makefile.in index f511a01..de888c9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -18,30 +18,43 @@ #### Start of system configuration section. #### -srcdir=@srcdir@ -VPATH=@srcdir@ +prefix = @prefix@ +srcdir = @srcdir@ +VPATH = @srcdir@ -SHELL=@SHPROG@ -RM=@RMPROG@ -AWK=@AWK@ +SHELL = @SHPROG@ +RM = @RMPROG@ +AWK = @AWK@ @SET_MAKE@ #### End of system configuration section. #### +SUBDIRS = ircd ircd/test +IRCD_MAKEFILES = Makefile ircd/Makefile ircd/test/Makefile + all: build .PHONY: server build depend install config update diff patch export update # Some versions of make give a warning when this is empty: .SUFFIXES: .dummy -build: - @if [ ! -f config/config.h ]; then \ - $(MAKE) config; \ - else \ - for i in config ircd; do \ - echo "Building $$i..."; \ - cd $$i; ${MAKE} build; cd ..; \ - done; \ - fi +build: ${IRCD_MAKEFILES} + @for i in ${SUBDIRS}; do \ + echo "Building $$i..."; \ + cd $$i; ${MAKE} build; cd ..; \ + done + +config: + @echo "*************************************************************" + @echo "* The \"make config\" step is now DEPRECATED. Most *" + @echo "* server options are now configurable via the configuration *" + @echo "* file using F-lines; the rest are specified on the command *" + @echo "* line to \"./configure\". To aid the transition, a shell *" + @echo "* script has been provided to generate the necessary *" + @echo "* configuration lines for you. You may run this script by *" + @echo "* typing \"tools/transition\"; please pay attention to its *" + @echo "* output. This message will be removed for the next major *" + @echo "* release of ircu. *" + @echo "*************************************************************" root-clean: @for i in '*.orig' '.*.orig' '\#*' '*~' '.*~' '*.bak' '.*.bak' core; do\ @@ -50,69 +63,83 @@ root-clean: test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \ done || true -clean: root-clean - @for i in ircd config; do \ +sub-clean: ${IRCD_MAKEFILES} + @for i in ${SUBDIRS}; do \ echo "Cleaning $$i..."; \ cd $$i; ${MAKE} clean; cd ..;\ done +clean: root-clean sub-clean + root-distclean: root-clean @for i in '*.rej'; do \ echo "Removing $$i"; \ REMOVE_FILES="`find . -name "$$i" -print`"; \ test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \ done || true - ${RM} -f Makefile -distclean: root-distclean - @for i in doc ircd config; do \ +sub-distclean: ${IRCD_MAKEFILES} + @for i in ${SUBDIRS}; do \ echo "Dist-cleaning $$i..."; \ cd $$i; ${MAKE} distclean; cd ..;\ done -maintainer-clean: root-distclean - @for i in doc ircd config; do \ +distclean: root-distclean sub-distclean + ${RM} -f Makefile config.h config.log config.cache config.status \ + stamp-h + +maintainer-clean: root-distclean ${IRCD_MAKEFILES} + @for i in ${SUBDIRS}; do \ echo "maintainer-cleaning $$i..."; \ cd $$i; ${MAKE} maintainer-clean; cd ..;\ done -depend: - @for i in ircd; do \ +depend: ${IRCD_MAKEFILES} + @for i in ${SUBDIRS}; do \ echo "Making dependencies in $$i..."; \ cd $$i; ${MAKE} depend; cd ..; \ done -install: - @if [ -f ircd/ircd ]; then \ - for i in ircd doc; do \ - echo "Installing $$i..."; \ - cd $$i; ${MAKE} install; cd ..; \ - done \ - else \ - echo "First run 'make'"; \ - fi - -uninstall: - @for i in doc ircd; do \ +install: ${IRCD_MAKEFILES} + test -d ${prefix} || mkdir ${prefix} + @for i in ${SUBDIRS}; do \ + echo "Installing $$i..."; \ + cd $$i; ${MAKE} install; cd ..; \ + done + +uninstall: ${IRCD_MAKEFILES} + @for i in ${SUBDIRS}; do \ echo "Uninstalling $$i..."; \ cd $$i; ${MAKE} uninstall; cd ..; \ done -config: FORCE - @cd config; ${MAKE} config - @echo - @echo "The Undernet IRC daemon is now hopefully configured for your setup." - @echo "Next run 'make' to build the server." - @echo +${srcdir}/aclocal.m4: acinclude.m4 + cd ${srcdir} && aclocal + +${srcdir}/configure: configure.in aclocal.m4 + cd ${srcdir} && autoconf + +# autoheader might not change config.h.in, so touch a stamp file. +${srcdir}/config.h.in: stamp-h.in +${srcdir}/stamp-h.in: configure.in aclocal.m4 acconfig.h + cd ${srcdir} && autoheader + echo timestamp > ${srcdir}/stamp-h.in + +config.h: stamp-h +stamp-h: config.h.in config.status + ./config.status + +Makefile: Makefile.in config.status + ./config.status + +ircd/Makefile: ircd/Makefile.in config.status + ./config.status -# Coders: You need GNU make for this to work. -Makefile: config/config.status Makefile.in - @echo "recreating Makefile" - @cd config; \ - CONFIG_FILES=../Makefile CONFIG_HEADERS= ./config.status > /dev/null +ircd/test/Makefile: ircd/test/Makefile.in config.status + ./config.status -config/config.status: - @cd config; ${MAKE} config.status +config.status: configure + ./config.status --recheck # Some versions of 'make' do not support the .PHONY target : FORCE: @@ -125,4 +152,4 @@ indent: # do a cvs update update: - cvs -z9 update \ No newline at end of file + cvs -z9 update