GNUmakefile.in 1.19 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
28
29
#
# For installation on the control node (okay, plastic)
# 
control-install:
	@$(MAKE) -C tbsetup control-install
	@$(MAKE) -C security control-install

30
31
32
33
34
install-mkdirs:
	-mkdir -p $(INSTALL_TOPDIR)/locks
	-mkdir -p $(INSTALL_TOPDIR)/log
	-mkdir -p $(INSTALL_TOPDIR)/lists

35
36
37
clean:		clean-subdirs
distclean:	distclean-subdirs
	rm -f Makeconf GNUmakefile config.status config.cache config.log
38
	rm -f $(DISTCLEAN_FILES)
39

40
41
42
43
44
# How to recursively descend into subdirectories to make general
# targets such as `all'.
%.MAKE:
	@$(MAKE) -C $(dir $@) $(basename $(notdir $@))
%-subdirs: $(addsuffix /%.MAKE,$(SUBDIRS)) ;
45

46
47
# By default, make any target by descending into subdirectories.
%: %-subdirs ;
48

49
.PHONY: post-install install-mkdirs
50
51
52

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