GNUmakefile.in 825 Bytes
Newer Older
1 2 3 4 5
#
# Testbed Makefile
#
SRCDIR = 	 @srcdir@
TESTBED_SRCDIR = @top_srcdir@
Christopher Alfeld's avatar
Christopher Alfeld committed
6

7 8 9
include Makeconf

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

11 12
all:		all-subdirs
install:	install-subdirs
13
	echo "DON'T FORGET TO RUN A POST-INSTALL AS ROOT"
14 15 16
post-install:
	@$(MAKE) -C tbsetup post-install
	@$(MAKE) -C security post-install
17 18 19
clean:		clean-subdirs
distclean:	distclean-subdirs
	rm -f Makeconf GNUmakefile config.status config.cache config.log
20

21 22 23 24 25
# How to recursively descend into subdirectories to make general
# targets such as `all'.
%.MAKE:
	@$(MAKE) -C $(dir $@) $(basename $(notdir $@))
%-subdirs: $(addsuffix /%.MAKE,$(SUBDIRS)) ;
26

27 28
# By default, make any target by descending into subdirectories.
%: %-subdirs ;
29

30 31 32 33
.PHONY: post-install

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