]> git.saurik.com Git - apt.git/blame - buildlib/makefile.in
Optimizations
[apt.git] / buildlib / makefile.in
CommitLineData
066427d0
AL
1# -*- make -*-
2
3# This is the build directory make file, it sets the build directory
4# and runs the src makefile.
53da8d70 5ifndef NOISY
faf4e30c 6.SILENT:
53da8d70 7endif
066427d0
AL
8
9SRCDIR=@top_srcdir@
f00ce0ae
AL
10DIRS:=./docs ./bin ./obj ./include ./scripts
11SUBDIRS:= $(DIRS) ./docs/examples ./bin/methods ./include/apt-pkg \
c3c459fc 12 ./include/deity ./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline \
f00ce0ae 13 ./obj/test ./obj/methods ./obj/methods/ftp ./scripts/dselect
066427d0
AL
14BUILD:=$(shell pwd)
15export BUILD
16
17# Chain to the parent make to do the actual building
f00ce0ae
AL
18.PHONY: headers library clean veryclean all binary program doc \
19 veryclean/local
6322370b
AL
20all headers library clean veryclean binary program doc:
21 $(MAKE) -C $(SRCDIR) -f Makefile $@
f00ce0ae
AL
22
23# Purge everything.
24.PHONY: maintainer-clean dist-clean pristine sanity distclean
25maintainer-clean dist-clean pristine sanity distclean:
26 -rm -rf $(DIRS)
27 -rm -f config.cache config.log config.status environment.mak makefile
066427d0
AL
28
29# This makes any missing directories
30.PHONY: dirs
31MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
32dirs:
33ifneq ($(words $(MISSING_DIRS)),0)
34 @mkdir $(MISSING_DIRS)
35else
36 @echo > /dev/null
37endif