GNUmakefile.in 2.69 KB
Newer Older
1
#
2
# Copyright (c) 2008-2012 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 22 23 24 25 26 27
# 
# {{{GENIPUBLIC-LICENSE
# 
# GENI Public License
# 
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and/or hardware specification (the "Work") to
# deal in the Work without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Work, and to permit persons to whom the Work
# is furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Work.
# 
# THE WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS
# IN THE WORK.
# 
# }}}
28 29 30 31 32 33
#

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ../..
SUBDIR		= protogeni/scripts
34
ISCLEARINGHOUSE = @PROTOGENI_ISCLEARINGHOUSE@
35 36 37

include $(OBJDIR)/Makeconf

Leigh B. Stoller's avatar
Leigh B. Stoller committed
38
SBIN_STUFF	= cleanupslice
Leigh B. Stoller's avatar
Leigh B. Stoller committed
39
PSBIN_STUFF	= register_resources expire_daemon gencrl postcrl \
40
		  addauthority getcacerts \
41
		  gencrlbundle shutdownslice remauthority listusage \
42
		  update reregister cleanupticket listhistory \
43
		  register_sliver sa_daemon genadmincredential \
44
		  getchcredential genallow_extcred advt-merge.py \
45
		  reservevlans delgeniuser delegatecredential \
46
		  updatecert fixcerts initcerts cacontrol webcacontrol \
Jonathon Duerig's avatar
Jonathon Duerig committed
47
		  genextend_lifetime rspeclint
48

49
ifeq ($(ISCLEARINGHOUSE),1)
50
PSBIN_STUFF     += ch_daemon gencabundle
51 52
endif

53 54 55 56 57 58 59 60 61
# 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.
# 
62
all:	$(SBIN_STUFF) $(PSBIN_STUFF) initsite resolve resolvenode resolve-ch
63 64 65

include $(TESTBED_SRCDIR)/GNUmakerules

Leigh B. Stoller's avatar
Leigh B. Stoller committed
66
install: $(addprefix $(INSTALL_SBINDIR)/, $(SBIN_STUFF)) \
67 68
	$(addprefix $(INSTALL_SBINDIR)/protogeni/, $(PSBIN_STUFF)) \
	$(INSTALL_LIBEXECDIR)/webcacontrol
69 70 71 72

control-install:

clean:
Leigh B. Stoller's avatar
Leigh B. Stoller committed
73 74
	rm -f *.o core *.pl *.pm *.py $(SBIN_STUFF) $(PSBIN_STUFF)

75 76 77 78 79
$(INSTALL_SBINDIR)/protogeni/gencabundle: gencabundle
	echo "Installing (setuid) $<"
	-mkdir -p $(INSTALL_SBINDIR)
	$(SUDO) $(INSTALL) -o root -m 4755 $< $@

Leigh B. Stoller's avatar
Leigh B. Stoller committed
80 81 82 83
$(INSTALL_SBINDIR)/protogeni/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_SBINDIR)/protogeni
	$(INSTALL) $< $@
84

85 86