]> git.saurik.com Git - apt.git/blob - buildlib/makefile.in
Fixed configure
[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 ifndef NOISY
6 .SILENT:
7 endif
8
9 SRCDIR=@top_srcdir@
10 DIRS:=./docs ./bin ./obj ./include ./scripts
11 SUBDIRS:= $(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
14 BUILD:=$(shell pwd)
15 export 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
20 all 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
25 maintainer-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
31 MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
32 dirs:
33 ifneq ($(words $(MISSING_DIRS)),0)
34 @mkdir $(MISSING_DIRS)
35 else
36 @echo > /dev/null
37 endif
38 ifneq ($(HAVE_C9X),yes)
39 -@rm include/inttypes.h
40 else
41 @cp $(SRCDIR)/buildlib/inttypes.h.in include/inttypes.h
42 endif