2004-05-09 Michael Poole <mdpoole@troilus.org>
[ircu2.10.12-pk.git] / Makefile.in
index 0ab281d38103ef119b38ec0f441ed6b322c35332..854f9f14b7569522096c31b679e15d03b2141ce5 100644 (file)
@@ -25,11 +25,12 @@ VPATH = @srcdir@
 SHELL = @SHPROG@
 RM = @RMPROG@
 AWK = @AWK@
+adns_subdir = @ADNS_SUBDIR@
 @SET_MAKE@
 #### End of system configuration section. ####
 
-SUBDIRS = doc ircd
-MAKEFILES = Makefile doc/Makefile ircd/Makefile
+SUBDIRS = doc ${adns_subdir} ircd
+IRCD_MAKEFILES = Makefile doc/Makefile adns/Makefile ircd/Makefile
 
 all: build
 
@@ -37,7 +38,7 @@ all: build
 # Some versions of make give a warning when this is empty:
 .SUFFIXES: .dummy
 
-build: ${MAKEFILES}
+build: ${IRCD_MAKEFILES}
        @for i in ${SUBDIRS}; do \
                echo "Building $$i..."; \
                cd $$i; ${MAKE} build; cd ..; \
@@ -63,7 +64,7 @@ root-clean:
                test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \
        done || true
 
-sub-clean: ${MAKEFILES}
+sub-clean: ${IRCD_MAKEFILES}
        @for i in ${SUBDIRS}; do \
                echo "Cleaning $$i..."; \
                cd $$i; ${MAKE} clean; cd ..;\
@@ -78,7 +79,7 @@ root-distclean: root-clean
                test -n "$$REMOVE_FILES" && ${RM} -f $$REMOVE_FILES; \
        done || true
 
-sub-distclean: ${MAKEFILES}
+sub-distclean: ${IRCD_MAKEFILES}
        @for i in ${SUBDIRS}; do \
                echo "Dist-cleaning $$i..."; \
                cd $$i; ${MAKE} distclean; cd ..;\
@@ -88,26 +89,27 @@ distclean: root-distclean sub-distclean
        ${RM} -f Makefile config.h config.log config.cache config.status \
                stamp-h
 
-maintainer-clean: root-distclean ${MAKEFILES}
+maintainer-clean: root-distclean ${IRCD_MAKEFILES}
        @for i in ${SUBDIRS}; do \
                echo "maintainer-cleaning $$i..."; \
                cd $$i; ${MAKE} maintainer-clean; cd ..;\
        done
 
-depend: ${MAKEFILES}
+depend: ${IRCD_MAKEFILES}
        @for i in ${SUBDIRS}; do \
                echo "Making dependencies in $$i..."; \
                cd $$i; ${MAKE} depend; cd ..; \
        done
 
-install: ${MAKEFILES}
+install: ${IRCD_MAKEFILES}
        test -d ${prefix} || mkdir ${prefix}
+       test -d ${prefix}/include || mkdir ${prefix}/include
        @for i in ${SUBDIRS}; do \
                echo "Installing $$i..."; \
                cd $$i; ${MAKE} install; cd ..; \
        done
 
-uninstall: ${MAKEFILES}
+uninstall: ${IRCD_MAKEFILES}
        @for i in ${SUBDIRS}; do \
                echo "Uninstalling $$i..."; \
                cd $$i; ${MAKE} uninstall; cd ..; \