GNUmakefile.in 819 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#
# EMULAB-COPYRIGHT
# Copyright (c) 2006 University of Utah and the Flux Group.
# All rights reserved.
#

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

12
BIN_STUFF	= cloudinfo flexdataclient
13
SBIN_STUFF	= flexdatasrv
14

15 16
include $(OBJDIR)/Makeconf

17
all: $(BIN_STUFF) $(SBIN_STUFF)
18 19 20

include $(TESTBED_SRCDIR)/GNUmakerules

21 22
install: subdir-install $(addprefix $(INSTALL_DIR)/opsdir/bin/, $(BIN_STUFF)) \
	 $(addprefix $(INSTALL_DIR)/opsdir/sbin/, $(SBIN_STUFF))
23 24 25 26 27 28 29 30 31 32 33 34 35

boss-install: install

subdir-install:
	@$(MAKE) -C db boss-install
	@$(MAKE) -C bgmon boss-install

clean:

$(INSTALL_DIR)/opsdir/bin/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_DIR)/opsdir/bin
	$(INSTALL) $< $@
36 37 38 39 40

$(INSTALL_DIR)/opsdir/sbin/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_DIR)/opsdir/sbin
	$(INSTALL) $< $@