]> git.saurik.com Git - apt.git/blame_incremental - buildlib/makefile.in
Changed handling of the no-dowload case
[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
8include environment.mak
9
10SRCDIR=@top_srcdir@
11DIRS:=./docs ./bin ./obj ./include ./scripts
12SUBDIRS:= $(DIRS) ./docs/examples ./bin/methods ./include/apt-pkg \
13 ./include/deity ./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline \
14 ./obj/test ./obj/methods ./obj/methods/ftp ./scripts/dselect
15BUILD:=$(shell pwd)
16export BUILD
17
18# Chain to the parent make to do the actual building
19.PHONY: headers library clean veryclean all binary program doc \
20 veryclean/local
21all headers library clean veryclean binary program doc:
22 $(MAKE) -C $(SRCDIR) -f Makefile $@
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
29
30# This makes any missing directories
31.PHONY: dirs
32MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
33dirs:
34 @rm -f include/sys
35ifneq ($(words $(MISSING_DIRS)),0)
36 @mkdir $(MISSING_DIRS)
37endif
38ifeq ($(HAVE_C9X),yes)
39 @rm -f include/inttypes.h > /dev/null 2>&1
40else
41 @cp -p $(SRCDIR)/buildlib/inttypes.h.in include/inttypes.h
42endif
43ifeq ($(HAVE_STATVFS),yes)
44 @rm -f include/statvfs.h > /dev/null 2>&1
45else
46 @cp -p $(SRCDIR)/buildlib/statvfs.h.in include/statvfs.h
47 ln -sf . include/sys
48endif
49ifeq ($(NEED_SOCKLEN_T_DEFINE),yes)
50 @cp -p $(SRCDIR)/buildlib/netdb.h.in include/netdb.h
51else
52 @rm -f include/netdb.h > /dev/null 2>&1
53endif