GNUmakefile.in 1.92 KB
Newer Older
1
#
2
# Copyright (c) 2000-2014 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
# 
# {{{EMULAB-LICENSE
# 
# This file is part of the Emulab network testbed software.
# 
# This file is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
# 
# This file is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public
# License for more details.
# 
# You should have received a copy of the GNU Affero General Public License
# along with this file.  If not, see <http://www.gnu.org/licenses/>.
# 
# }}}
22 23 24 25 26 27
#

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= install
28 29
GENIRACK        = @PROTOGENI_GENIRACK@
SUBDIRS	        =
30 31 32

include $(OBJDIR)/Makeconf

33
ifeq ($(STANDALONE_CLEARINGHOUSE),0)
34
TARGETS	= libinstall.pm boss-install ops-install fs-install dump-descriptors \
35
	load-descriptors update-install update-mfs update-testbed testbed-version \
36
	installvars.pm emulab-install
37 38 39 40
else
TARGETS = clrhouse-install
endif

41 42 43 44
ifeq ($(GENIRACK),1)
SUBDIRS		= genirack
endif

45 46 47 48
#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
49
all: $(TARGETS) all-subdirs
50 51 52

include $(TESTBED_SRCDIR)/GNUmakerules

53 54
install: install-subdirs \
	$(INSTALL_LIBDIR)/libinstall.pm \
55
	$(INSTALL_LIBDIR)/installvars.pm \
56
	$(INSTALL_SBINDIR)/update-install \
57
	$(INSTALL_SBINDIR)/update-testbed \
58 59
	$(INSTALL_SBINDIR)/testbed-version \
	$(INSTALL_SBINDIR)/load-descriptors
60 61

clean: 
62
	rm -f $(TARGETS)
63 64 65 66 67 68 69 70

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