#### Start of system configuration section. ####
+prefix = @prefix@
srcdir = @srcdir@
VPATH = @srcdir@
@SET_MAKE@
#### End of system configuration section. ####
-SUBDIRS = doc ircd
+SUBDIRS = doc ircd ircd/test
+IRCD_MAKEFILES = Makefile doc/Makefile ircd/Makefile ircd/test/Makefile
all: build
# Some versions of make give a warning when this is empty:
.SUFFIXES: .dummy
-build:
+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\
echo "Removing $$i"; \
test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \
done || true
-sub-clean:
+sub-clean: ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "Cleaning $$i..."; \
cd $$i; ${MAKE} clean; cd ..;\
test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \
done || true
-sub-distclean:
+sub-distclean: ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "Dist-cleaning $$i..."; \
cd $$i; ${MAKE} distclean; cd ..;\
${RM} -f Makefile config.h config.log config.cache config.status \
stamp-h
-maintainer-clean: root-distclean
+maintainer-clean: root-distclean ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "maintainer-cleaning $$i..."; \
cd $$i; ${MAKE} maintainer-clean; cd ..;\
done
-depend:
+depend: ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "Making dependencies in $$i..."; \
cd $$i; ${MAKE} depend; cd ..; \
done
-install:
+install: ${IRCD_MAKEFILES}
+ test -d ${prefix} || mkdir ${prefix}
@for i in ${SUBDIRS}; do \
echo "Installing $$i..."; \
cd $$i; ${MAKE} install; cd ..; \
done
-uninstall:
+uninstall: ${IRCD_MAKEFILES}
@for i in ${SUBDIRS}; do \
echo "Uninstalling $$i..."; \
cd $$i; ${MAKE} uninstall; cd ..; \
ircd/Makefile: ircd/Makefile.in config.status
./config.status
+ircd/test/Makefile: ircd/test/Makefile.in config.status
+ ./config.status
+
config.status: configure
./config.status --recheck