GNUmakefile.in 1.88 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
DOWNLOAD_STUFF  = sshxmlrpc.py sshxmlrpc_client.py emulabclient.py
DEBUG_STUFF     = experiment
22 23 24 25

#
# These are the ones installed on plastic (users, control, etc). 
# 
26 27
CLIENTBIN       = sshxmlrpc_client.py
USERLIBS	= sshxmlrpc.py emulabclient.py 
28 29 30 31 32

#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
33 34
all:	$(BIN_SCRIPTS) $(SBIN_SCRIPTS) $(LIB_STUFF) $(LIBEXEC_STUFF) \
	$(DOWNLOAD_STUFF) $(DEBUG_STUFF)
35 36 37 38 39

include $(TESTBED_SRCDIR)/GNUmakerules

install: $(addprefix $(INSTALL_BINDIR)/, $(BIN_SCRIPTS)) \
	$(addprefix $(INSTALL_SBINDIR)/, $(SBIN_SCRIPTS)) \
40
	$(addprefix $(INSTALL_SBINDIR)/xmlrpc/, $(DEBUG_STUFF)) \
41
	$(addprefix $(INSTALL_LIBEXECDIR)/, $(LIBEXEC_STUFF)) \
42
	$(addprefix $(INSTALL_WWWDIR)/, $(WWW_STUFF)) \
43
	$(addprefix $(INSTALL_WWWDIR)/downloads/xmlrpc/, $(DOWNLOAD_STUFF)) \
44 45
	$(addprefix $(INSTALL_LIBDIR)/, $(LIB_STUFF))

46 47 48 49 50
$(INSTALL_WWWDIR)/%: %
	@echo "Installing $<"
	-mkdir -p $(patsubst %/,%,$(dir $@))
	$(INSTALL_DATA) $(subst $$,\$$,$<) $(subst $$,\$$,$@) 

51 52 53 54 55 56 57 58 59 60
$(INSTALL_WWWDIR)/downloads/xmlrpc/%: %
	@echo "Installing $<"
	-mkdir -p $(patsubst %/,%,$(dir $@))
	$(INSTALL_DATA) $(subst $$,\$$,$<) $(subst $$,\$$,$@)

$(INSTALL_SBINDIR)/xmlrpc/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_SBINDIR)/xmlrpc
	$(INSTALL_PROGRAM) $< $@

61 62 63
#
# Control node installation (okay, plastic)
#
64 65
control-install:	$(addprefix $(INSTALL_LIBDIR)/, $(USERLIBS)) \
	$(addprefix $(INSTALL_BINDIR)/, $(CLIENTBIN))
66 67

clean: