GNUmakefile.in 1.07 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
#
# 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

BIN_SCRIPTS	= sshxmlrpc_client.py
SBIN_SCRIPTS	= sshxmlrpc_server.py
LIB_STUFF	= sshxmlrpc.py emulabserver.py

#
# 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.
# 
all:	$(BIN_SCRIPTS) $(SBIN_SCRIPTS) $(LIB_STUFF)

include $(TESTBED_SRCDIR)/GNUmakerules

install: $(addprefix $(INSTALL_BINDIR)/, $(BIN_SCRIPTS)) \
	$(addprefix $(INSTALL_SBINDIR)/, $(SBIN_SCRIPTS)) \
	$(addprefix $(INSTALL_LIBDIR)/, $(LIB_STUFF))

#
# 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: