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

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ../..
SUBDIR		= protogeni/scripts

include $(OBJDIR)/Makeconf

Leigh B. Stoller's avatar
Leigh B. Stoller committed
14
SBIN_STUFF	= cleanupslice
Leigh B. Stoller's avatar
Leigh B. Stoller committed
15 16
PSBIN_STUFF	= register_resources expire_daemon gencrl postcrl \
		  createcerts initsite addauthority getcacerts \
17
		  gencrlbundle shutdownslice remauthority listusage
18 19 20 21 22 23 24 25 26 27

# These scripts installed setuid, with sudo. 
SETUID_BIN_SCRIPTS   = 
SETUID_SBIN_SCRIPTS  = cleanupslice
SETUID_LIBX_SCRIPTS  =

#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
Leigh B. Stoller's avatar
Leigh B. Stoller committed
28
all:	$(SBIN_STUFF) $(PSBIN_STUFF)
29 30 31

include $(TESTBED_SRCDIR)/GNUmakerules

Leigh B. Stoller's avatar
Leigh B. Stoller committed
32 33
install: $(addprefix $(INSTALL_SBINDIR)/, $(SBIN_STUFF)) \
	$(addprefix $(INSTALL_SBINDIR)/protogeni/, $(PSBIN_STUFF))
34 35 36 37

control-install:

clean:
Leigh B. Stoller's avatar
Leigh B. Stoller committed
38 39 40 41 42 43
	rm -f *.o core *.pl *.pm *.py $(SBIN_STUFF) $(PSBIN_STUFF)

$(INSTALL_SBINDIR)/protogeni/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_SBINDIR)/protogeni
	$(INSTALL) $< $@
44