GNUmakefile.in 1.13 KB
Newer Older
1 2
#
# EMULAB-COPYRIGHT
3
# Copyright (c) 2004, 2005 University of Utah and the Flux Group.
4 5 6 7 8 9 10 11 12 13
# All rights reserved.
#

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= robots

include $(OBJDIR)/Makeconf

14 15 16 17 18 19 20 21 22 23 24 25
ifeq ($(HAVE_MEZZANINE),yes)
MEZZDIR=mezzanine
else
MEZZDIR=
endif

ifeq ($(EVENTSYS),1)
EMCDIR=emc
else
EMCDIR=
endif

Timothy Stack's avatar
Timothy Stack committed
26 27 28 29 30 31
ifeq ($(HAVE_ULXMLRPCPP),yes)
TBSETDESTDIR=tbsetdest
else
TBSETDESTDIR=
endif

32
SUBDIRS	= $(TBSETDESTDIR) $(MEZZDIR) mtp $(EMCDIR) vmcd primotion rmcd tracker
33

34
all:		robomonitord all-subdirs 
35
client:		client-subdirs
36
client-install:	client-install-subdirs
37
check:		check-subdirs
38

39
install:	install-subdirs install-scripts
40 41
	@echo "Don't forget to do a post-install as root"

42
boss-install:   install
43
control-install:	control-install-subdirs
44

45 46 47
post-install: 
	@$(MAKE) -C emc post-install

48 49 50 51
include $(TESTBED_SRCDIR)/GNUmakerules

clean:		clean-subdirs

52 53
install-scripts:	$(addprefix $(INSTALL_SBINDIR)/, robomonitord)

54 55 56 57 58 59 60
# 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)