GNUmakefile.in 848 Bytes
Newer Older
1
#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
2
# EMULAB-COPYRIGHT
3
# Copyright (c) 2000-2011 University of Utah and the Flux Group.
Leigh B. Stoller's avatar
Leigh B. Stoller committed
4
# All rights reserved.
5
#
6 7
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
8 9
OBJDIR		= @top_builddir@
SUBDIR		= $(subst $(TESTBED_SRCDIR)/,,$(SRCDIR))
10 11

include $(OBJDIR)/Makeconf
12

Leigh B Stoller's avatar
Leigh B Stoller committed
13
SUBDIRS	= libtb event tmcd
14

15
all:	all-subdirs
Christopher Alfeld's avatar
Christopher Alfeld committed
16

17
include $(TESTBED_SRCDIR)/GNUmakerules
18

19 20
client: client-subdirs
install: install-subdirs
Leigh B Stoller's avatar
Leigh B Stoller committed
21
boss-install: install-subdirs
22
control-install: control-install-subdirs
Leigh B Stoller's avatar
Leigh B Stoller committed
23
client-install: client-install-subdirs
Leigh B Stoller's avatar
Leigh B Stoller committed
24 25
subboss:
subboss-install:
26 27
clean:		clean-subdirs
distclean:	distclean-subdirs
Leigh B Stoller's avatar
Leigh B Stoller committed
28 29 30 31
mfs:
mfs-install:
frisbee-mfs:
frisbee-mfs-install:
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

.PHONY:	$(SUBDIRS)