Better configure support
[ntk/apt.git] / buildlib / makefile.in
1 # -*- make -*-
2
3 # This is the build directory make file, it sets the build directory
4 # and runs the src makefile.
5
6 SRCDIR=@top_srcdir@
7 SUBDIRS:=./doc ./bin ./obj ./include/apt-pkg ./include/deity
8 BUILD:=$(shell pwd)
9 export BUILD
10
11 # Chain to the parent make to do the actual building
12 .PHONY: headers library clean veryclean all binary program doc
13 headers library clean veryclean all binary program doc:
14 $(MAKE) -C $(SRCDIR) $@
15
16 # This makes any missing directories
17 .PHONY: dirs
18 MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
19 dirs:
20 ifneq ($(words $(MISSING_DIRS)),0)
21 @mkdir $(MISSING_DIRS)
22 else
23 @echo > /dev/null
24 endif