]> git.saurik.com Git - apt.git/blame_incremental - buildlib/makefile.in
Optimizations
[apt.git] / buildlib / makefile.in
... / ...
CommitLineData
1# -*- make -*-
2
3# This is the build directory make file, it sets the build directory
4# and runs the src makefile.
5ifndef NOISY
6.SILENT:
7endif
8
9SRCDIR=@top_srcdir@
10DIRS:=./docs ./bin ./obj ./include ./scripts
11SUBDIRS:= $(DIRS) ./docs/examples ./bin/methods ./include/apt-pkg \
12 ./include/deity ./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline \
13 ./obj/test ./obj/methods ./obj/methods/ftp ./scripts/dselect
14BUILD:=$(shell pwd)
15export BUILD
16
17# Chain to the parent make to do the actual building
18.PHONY: headers library clean veryclean all binary program doc \
19 veryclean/local
20all headers library clean veryclean binary program doc:
21 $(MAKE) -C $(SRCDIR) -f Makefile $@
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
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