GNUmakefile.in 1016 Bytes
Newer Older
1 2 3 4 5 6 7 8
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2011 University of Utah and the Flux Group.
# All rights reserved.
#
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= @top_builddir@
9
SUBDIR		= $(subst $(TESTBED_SRCDIR)/,,$(SRCDIR))
10 11 12 13
SYSTEM	       := $(shell uname -s)

include $(OBJDIR)/Makeconf

Leigh B Stoller's avatar
Leigh B Stoller committed
14 15 16 17 18 19 20 21 22
SUBDIRS         =
ifeq ($(EMULAB_CLIENTSIDE),1)
#
# lib is a common directory, and is added to the clientside tarball.
# So not do not build it when building full emulab tree; already done.
#
SUBDIRS	       += lib
endif
SUBDIRS	       += event tools
23 24 25 26 27 28 29

all:	all-subdirs

include $(TESTBED_SRCDIR)/GNUmakerules

client:		client-subdirs
client-install: client client-install-subdirs
30 31
control-install: control-install-subdirs
post-install:	post-install-subdirs
32 33 34 35 36 37 38 39 40 41
clean:		clean-subdirs
distclean:	distclean-subdirs

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

.PHONY:	$(SUBDIRS)