]> git.saurik.com Git - apt.git/blame - buildlib/makefile.in
fixed makefile
[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
8484ee17 8include environment.mak
066427d0
AL
9
10SRCDIR=@top_srcdir@
f00ce0ae
AL
11DIRS:=./docs ./bin ./obj ./include ./scripts
12SUBDIRS:= $(DIRS) ./docs/examples ./bin/methods ./include/apt-pkg \
c3c459fc 13 ./include/deity ./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline \
f00ce0ae 14 ./obj/test ./obj/methods ./obj/methods/ftp ./scripts/dselect
066427d0
AL
15BUILD:=$(shell pwd)
16export BUILD
17
18# Chain to the parent make to do the actual building
f00ce0ae
AL
19.PHONY: headers library clean veryclean all binary program doc \
20 veryclean/local
6322370b
AL
21all headers library clean veryclean binary program doc:
22 $(MAKE) -C $(SRCDIR) -f Makefile $@
f00ce0ae
AL
23
24# Purge everything.
25.PHONY: maintainer-clean dist-clean pristine sanity distclean
26maintainer-clean dist-clean pristine sanity distclean:
27 -rm -rf $(DIRS)
28 -rm -f config.cache config.log config.status environment.mak makefile
066427d0
AL
29
30# This makes any missing directories
31.PHONY: dirs
32MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
33dirs:
34ifneq ($(words $(MISSING_DIRS)),0)
35 @mkdir $(MISSING_DIRS)
36else
37 @echo > /dev/null
38endif
8484ee17 39ifeq ($(HAVE_C9X),yes)
51761e5e
AL
40 -@rm include/inttypes.h
41else
42 @cp $(SRCDIR)/buildlib/inttypes.h.in include/inttypes.h
43endif