GNUmakefile.in 2.48 KB
Newer Older
1
#
Leigh Stoller's avatar
Leigh Stoller committed
2
# Copyright (c) 2008-2016 University of Utah and the Flux Group.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
# 
# {{{GENIPUBLIC-LICENSE
# 
# GENI Public License
# 
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and/or hardware specification (the "Work") to
# deal in the Work without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Work, and to permit persons to whom the Work
# is furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Work.
# 
# THE WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS
# IN THE WORK.
# 
# }}}
28 29 30 31 32 33
#

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= protogeni
34
RSPECGENI       = $(SRCDIR)/rspec-geni/.git
35
ELABINELAB      = @ELABINELAB@
36 37 38

include $(OBJDIR)/Makeconf

Leigh Stoller's avatar
Leigh Stoller committed
39
SUBDIRS	= security xmlrpc lib scripts etc rspec-emulab pubxmlrpc event
40

41
all:	check-submodule all-subdirs
42 43 44 45 46

include $(TESTBED_SRCDIR)/GNUmakerules

install: 
	@$(MAKE) -C security install
Leigh Stoller's avatar
Leigh Stoller committed
47
	@$(MAKE) -C xmlrpc install
48
	@$(MAKE) -C lib install
49
	@$(MAKE) -C scripts install
Leigh Stoller's avatar
Leigh Stoller committed
50
	@$(MAKE) -C etc install
51
	@$(MAKE) -C rspec-emulab install
52
	@$(MAKE) -C test install
53
	@$(MAKE) -C pubxmlrpc install
Leigh Stoller's avatar
Leigh Stoller committed
54
	@$(MAKE) -C event install
55

56
check-submodule: 
57 58 59 60
	@if [ ! -e "rspec-emulab" ]; then \
	    echo '*** rspec-emulab does not exist; you need to reconfigure!'; \
	    false; \
	fi
61
ifeq ($(ELABINELAB),0)
62
	@if [ -e "$(SRCDIR)/.git" -a ! -e "$(RSPECGENI)" ]; then \
63 64 65
	    echo '*** rspec-geni has not been updated; you need to reconfigure!'; \
	    false; \
	fi
66
endif
67

68 69 70
install-genischemacheck:
	@$(MAKE) -C lib install-genischemacheck

71 72
control-install: 

73 74 75
# Clearinghouse install.
clrhouse-install: install

76 77 78 79 80 81 82 83 84 85 86 87
clean:		clean-subdirs
distclean:	subdir-distclean

subdir-distclean:
	@$(MAKE) -C imagezip distclean

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

88
.PHONY:	$(SUBDIRS) install