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

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= xmlrpc
UNIFIED         = @UNIFIED_BOSS_AND_OPS@

include $(OBJDIR)/Makeconf

15
BIN_SCRIPTS	= sshxmlrpc_client.py
16
SBIN_SCRIPTS	= sshxmlrpc_server.py
17 18
LIB_STUFF	= sshxmlrpc.py emulabserver.py emulabclient.py
LIBEXEC_STUFF	= webxmlrpc
19
WWW_STUFF	= xmlrpcapi.php3
20 21 22 23 24 25 26 27 28 29

#
# These are the ones installed on plastic (users, control, etc). 
# 
USERBINS        = sshxmlrpc_client.py

#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
30
all:	$(BIN_SCRIPTS) $(SBIN_SCRIPTS) $(LIB_STUFF) $(LIBEXEC_STUFF)
31 32 33 34 35

include $(TESTBED_SRCDIR)/GNUmakerules

install: $(addprefix $(INSTALL_BINDIR)/, $(BIN_SCRIPTS)) \
	$(addprefix $(INSTALL_SBINDIR)/, $(SBIN_SCRIPTS)) \
36
	$(addprefix $(INSTALL_LIBEXECDIR)/, $(LIBEXEC_STUFF)) \
37
	$(addprefix $(INSTALL_WWWDIR)/, $(WWW_STUFF)) \
38 39
	$(addprefix $(INSTALL_LIBDIR)/, $(LIB_STUFF))

40 41 42 43 44
$(INSTALL_WWWDIR)/%: %
	@echo "Installing $<"
	-mkdir -p $(patsubst %/,%,$(dir $@))
	$(INSTALL_DATA) $(subst $$,\$$,$<) $(subst $$,\$$,$@) 

45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
#
# Control node installation (okay, plastic)
#
ifneq ($(UNIFIED),1)
LINKS=	cd $(INSTALL_BINDIR) && \
		list='$(USERBINS)'; for file in $$list; do \
			rm -f $$file; \
			ln -s plasticwrap $$file; \
		done;


endif
control-install:
	$(LINKS)

clean: