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

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

include $(OBJDIR)/Makeconf

14
ifeq ($(NODE_USAGE_SUPPORT),1)
15
LIBEXEC_NODE_USAGE = analy mk-plots refresh analy2 gather publish mk-php-pages get-start-date
16 17 18
else
LIBEXEC_NODE_USAGE =
endif
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

#
# These are Utah emulab specific
#
NODE_USAGE_OTHER = from_ptop sanity

#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
all:	$(LIBEXEC_NODE_USAGE)

include $(TESTBED_SRCDIR)/GNUmakerules

install: \
	$(addprefix $(INSTALL_LIBEXECDIR)/node_usage/, $(LIBEXEC_NODE_USAGE))

$(INSTALL_LIBEXECDIR)/node_usage/%: %
	@echo "Installing $<"
Kevin Atkinson's avatar
Kevin Atkinson committed
38 39
	sudo mkdir -p @prefix@/data/node_usage
	sudo chmod 775 @prefix@/data/node_usage
40 41
	mkdir -p $(INSTALL_LIBEXECDIR)/node_usage
	chmod 775 $(INSTALL_LIBEXECDIR)/node_usage
42 43
	$(INSTALL) $< $@

44 45
post-install:

46 47
clean: