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

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ../../..
SUBDIR		= tbsetup/plab/etc
UNIFIED         = @UNIFIED_BOSS_AND_OPS@

include $(OBJDIR)/Makeconf

15
ETC_STUFF       = fixsudo.sh # plabroot.tgz 
16 17

CERTS		= cacert.pem cert.pem key.pem pubkey.pem req.pem
18 19 20 21 22

#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
23
all:	$(ETC_STUFF) # $(CERTS)
24 25 26 27 28 29 30 31

include $(TESTBED_SRCDIR)/GNUmakerules

install: all data-install

#
# Automate this part at some point.
# 
32 33 34 35
data-install: $(addprefix $(INSTALL_ETCDIR)/plab/, $(ETC_STUFF)) # \
#		$(addprefix $(INSTALL_ETCDIR)/plab/, $(CERTS))
	@echo Make sure etc/plab/ has the necessary certificates
	@echo See tbsetup/plab/etc/README for instructions
36 37 38 39 40 41 42 43 44 45 46

post-install: 
	chmod 775 $(INSTALL_ETCDIR)
	chmod 775 $(INSTALL_ETCDIR)/plab

clean:

$(INSTALL_ETCDIR)/plab/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_ETCDIR)/plab
	$(INSTALL_DATA) $< $@