GNUmakefile.in 912 Bytes
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
15
all:		all-subdirs
install:	install-subdirs
16
	@echo "DON'T FORGET TO RUN A POST-INSTALL AS ROOT"
17
18
19
post-install:
	@$(MAKE) -C tbsetup post-install
	@$(MAKE) -C security post-install
20
21
22
clean:		clean-subdirs
distclean:	distclean-subdirs
	rm -f Makeconf GNUmakefile config.status config.cache config.log
23
	rm -f $(DISTCLEAN_FILES)
24

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

31
32
# By default, make any target by descending into subdirectories.
%: %-subdirs ;
33

34
35
36
37
.PHONY: post-install

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