GNUmakefile.in 1.04 KB
Newer Older
1
2
3
#
# Testbed Makefile
#
4
5
6
7
8
SRCDIR		= @srcdir@
OBJDIR		= .
SUBDIR		= 
TESTBED_SRCDIR  = @top_srcdir@
DISTCLEAN_FILES = @DISTCLEAN_FILES@ 
Christopher Alfeld's avatar
Christopher Alfeld committed
9

10
11
12
include Makeconf

SUBDIRS = lib assign discvr tbsetup db os security pxe tmcd www tip capture
Christopher Alfeld's avatar
Christopher Alfeld committed
13

14
all:		all-subdirs
15
16

install:	install-subdirs install-mkdirs
17
	@echo "DON'T FORGET TO RUN A POST-INSTALL AS ROOT"
18

19
20
21
post-install:
	@$(MAKE) -C tbsetup post-install
	@$(MAKE) -C security post-install
22
23
24
25
26
27

install-mkdirs:
	-mkdir -p $(INSTALL_TOPDIR)/locks
	-mkdir -p $(INSTALL_TOPDIR)/log
	-mkdir -p $(INSTALL_TOPDIR)/lists

28
29
30
clean:		clean-subdirs
distclean:	distclean-subdirs
	rm -f Makeconf GNUmakefile config.status config.cache config.log
31
	rm -f $(DISTCLEAN_FILES)
32

33
34
35
36
37
# How to recursively descend into subdirectories to make general
# targets such as `all'.
%.MAKE:
	@$(MAKE) -C $(dir $@) $(basename $(notdir $@))
%-subdirs: $(addsuffix /%.MAKE,$(SUBDIRS)) ;
38

39
40
# By default, make any target by descending into subdirectories.
%: %-subdirs ;
41

42
.PHONY: post-install install-mkdirs
43
44
45

# Get rid of a bunch of nasty built-in implicit rules.
.SUFFIXES: