Commit d3afb11d authored by Leigh Stoller's avatar Leigh Stoller

Build genirack subdir when its a geni rack build.

parent eb41c014
......@@ -25,6 +25,8 @@ SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ..
SUBDIR = install
GENIRACK = @PROTOGENI_GENIRACK@
SUBDIRS =
include $(OBJDIR)/Makeconf
......@@ -36,11 +38,15 @@ else
TARGETS = clrhouse-install
endif
ifeq ($(GENIRACK),1)
SUBDIRS = genirack
endif
#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
#
all: $(TARGETS)
all: $(TARGETS) all-subdirs
include $(TESTBED_SRCDIR)/GNUmakerules
......@@ -53,3 +59,11 @@ install: $(INSTALL_LIBDIR)/libinstall.pm \
clean:
rm -f $(TARGETS)
# 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}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment