GNUmakefile.in 980 Bytes
Newer Older
Leigh Stoller's avatar
Leigh Stoller committed
1 2 3 4 5 6 7 8 9
#
# 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@
SUBDIR		= $(subst $(TESTBED_SRCDIR)/,,$(SRCDIR))
Leigh Stoller's avatar
Leigh Stoller committed
10
SYSTEM         := $(shell uname -s)
Leigh Stoller's avatar
Leigh Stoller committed
11 12 13 14

include $(OBJDIR)/Makeconf

SUBDIRS		= slothd
Leigh Stoller's avatar
Leigh Stoller committed
15 16 17
ifeq ($(FBSDVERSION),FreeBSD4)
SUBDIRS	+= canaryd
endif
Leigh Stoller's avatar
Leigh Stoller committed
18 19 20 21
all:	all-subdirs

include $(TESTBED_SRCDIR)/GNUmakerules

22
boss-install:	all boss-install-subdirs
Leigh Stoller's avatar
Leigh Stoller committed
23 24 25 26 27 28 29 30
client:		client-subdirs
client-install: client client-install-subdirs
control-install: control-install-subdirs
subboss:
subboss-install:
post-install:	post-install-subdirs
clean:		clean-subdirs
distclean:	distclean-subdirs
Leigh Stoller's avatar
Leigh Stoller committed
31 32
mfs:		client
mfs-install:	client-install
Leigh Stoller's avatar
Leigh Stoller committed
33 34 35 36 37 38 39 40 41 42
frisbee-mfs:
frisbee-mfs-install:

# 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)