]> git.saurik.com Git - apt.git/commitdiff
Better configure support
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:50:48 +0000 (16:50 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:50:48 +0000 (16:50 +0000)
Author: jgg
Date: 1998-07-14 05:09:40 GMT
Better configure support

buildlib/makefile.in [new file with mode: 0644]
configure.in

diff --git a/buildlib/makefile.in b/buildlib/makefile.in
new file mode 100644 (file)
index 0000000..a2f8300
--- /dev/null
@@ -0,0 +1,24 @@
+# -*- make -*-
+
+# This is the build directory make file, it sets the build directory
+# and runs the src makefile.
+
+SRCDIR=@top_srcdir@
+SUBDIRS:=./doc ./bin ./obj ./include/apt-pkg ./include/deity
+BUILD:=$(shell pwd)
+export BUILD
+
+# Chain to the parent make to do the actual building
+.PHONY: headers library clean veryclean all binary program doc
+headers library clean veryclean all binary program doc:
+       $(MAKE) -C $(SRCDIR) $@
+       
+# This makes any missing directories
+.PHONY: dirs
+MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
+dirs:
+ifneq ($(words $(MISSING_DIRS)),0)
+       @mkdir  $(MISSING_DIRS)
+else
+       @echo > /dev/null
+endif  
index b3f6c57f405b5b7789936cf2965e582e89585d87..61460e29033a80ec0c65de13fd72da7a0cbca8b5 100644 (file)
@@ -9,6 +9,7 @@ dnl need a C++ compiler that is semi-standard conformant, exceptions are
 dnl not used but STL is.
 
 AC_INIT(configure.in)
 dnl not used but STL is.
 
 AC_INIT(configure.in)
+AC_CONFIG_AUX_DIR(buildlib)
 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in)
 
 dnl Tom's host stuff
 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in)
 
 dnl Tom's host stuff
@@ -84,7 +85,4 @@ dnl Check for debiandoc
 AC_CHECK_PROG(DEBIANDOC_HTML,debiandoc2html,"yes","")
 AC_CHECK_PROG(DEBIANDOC_TEXT,debiandoc2text,"yes","")
 
 AC_CHECK_PROG(DEBIANDOC_HTML,debiandoc2html,"yes","")
 AC_CHECK_PROG(DEBIANDOC_TEXT,debiandoc2text,"yes","")
 
-AC_OUTPUT(environment.mak:buildlib/environment.mak.in)
-
-dnl Setup the directories
-mkdir doc bin obj include/apt-pkg include/deity
+AC_OUTPUT(environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in,make dirs)