summaryrefslogtreecommitdiff
path: root/buildlib/makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'buildlib/makefile.in')
-rw-r--r--buildlib/makefile.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/buildlib/makefile.in b/buildlib/makefile.in
new file mode 100644
index 000000000..a2f8300ce
--- /dev/null
+++ b/buildlib/makefile.in
@@ -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