GNUmakefile.in 1.64 KB
Newer Older
1
#
2
# GENIPUBLIC-COPYRIGHT
3
# Copyright (c) 2008-2012 University of Utah and the Flux Group.
4 5 6 7 8 9 10
# All rights reserved.
#

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ../..
SUBDIR		= protogeni/scripts
11
ISCLEARINGHOUSE = @PROTOGENI_ISCLEARINGHOUSE@
12 13 14

include $(OBJDIR)/Makeconf

Leigh B. Stoller's avatar
Leigh B. Stoller committed
15
SBIN_STUFF	= cleanupslice
Leigh B. Stoller's avatar
Leigh B. Stoller committed
16
PSBIN_STUFF	= register_resources expire_daemon gencrl postcrl \
17
		  addauthority getcacerts \
18
		  gencrlbundle shutdownslice remauthority listusage \
19
		  update reregister cleanupticket listhistory \
20
		  register_sliver sa_daemon genadmincredential \
21
		  getchcredential genallow_extcred advt-merge.py \
22
		  reservevlans delgeniuser delegatecredential \
23
		  updatecert fixcerts initcerts cacontrol webcacontrol
24

25
ifeq ($(ISCLEARINGHOUSE),1)
26
PSBIN_STUFF     += ch_daemon gencabundle
27 28
endif

29 30 31 32 33 34 35 36 37
# 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.
# 
38
all:	$(SBIN_STUFF) $(PSBIN_STUFF) initsite resolve resolvenode resolve-ch
39 40 41

include $(TESTBED_SRCDIR)/GNUmakerules

Leigh B. Stoller's avatar
Leigh B. Stoller committed
42
install: $(addprefix $(INSTALL_SBINDIR)/, $(SBIN_STUFF)) \
43 44
	$(addprefix $(INSTALL_SBINDIR)/protogeni/, $(PSBIN_STUFF)) \
	$(INSTALL_LIBEXECDIR)/webcacontrol
45 46 47 48

control-install:

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

51 52 53 54 55
$(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
56 57 58 59
$(INSTALL_SBINDIR)/protogeni/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_SBINDIR)/protogeni
	$(INSTALL) $< $@
60

61 62