GNUmakefile.in 1.16 KB
Newer Older
1
#
2
3
# GENIPUBLIC-COPYRIGHT
# Copyright (c) 2008-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 \
Leigh B. Stoller's avatar
Leigh B. Stoller committed
18
19
		  update reregister cleanupticket listhistory \
		  register_sliver
20
21
22
23
24
25
26
27
28
29

# 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.
# 
30
all:	$(SBIN_STUFF) $(PSBIN_STUFF) resolve initclrhouse testclrhouse
31
32
33

include $(TESTBED_SRCDIR)/GNUmakerules

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

control-install:

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

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