GNUmakefile.in 990 Bytes
Newer Older
Leigh B. Stoller's avatar
Leigh B. Stoller committed
1 2 3 4 5 6
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# All rights reserved.
#

Leigh B. Stoller's avatar
Leigh B. Stoller committed
7 8 9
#
# Insert Copyright Here.
#
10 11 12 13
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ../..
SUBDIR		= tbsetup/ns2ir
14

15
include $(OBJDIR)/Makeconf
16

Leigh B. Stoller's avatar
Leigh B. Stoller committed
17
LIB_STUFF	= lanlink.tcl node.tcl sim.tcl tb_compat.tcl null.tcl \
18 19
		  nsobject.tcl traffic.tcl vtype.tcl parse.tcl program.tcl \
		  nsenode.tcl nstb_compat.tcl
20
LIBEXEC_STUFF	= parse-ns
Leigh B. Stoller's avatar
Leigh B. Stoller committed
21 22

#
23 24
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
Leigh B. Stoller's avatar
Leigh B. Stoller committed
25
# 
26
all: $(LIB_STUFF) $(LIBEXEC_STUFF)
Leigh B. Stoller's avatar
Leigh B. Stoller committed
27

28
include $(TESTBED_SRCDIR)/GNUmakerules
Leigh B. Stoller's avatar
Leigh B. Stoller committed
29

30 31
install: $(addprefix $(INSTALL_LIBDIR)/ns2ir/, $(LIB_STUFF)) \
	$(addprefix $(INSTALL_LIBEXECDIR)/ns2ir/, $(LIBEXEC_STUFF))
Leigh B. Stoller's avatar
Leigh B. Stoller committed
32

33 34 35 36 37 38
$(INSTALL_LIBDIR)/ns2ir/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_LIBDIR)/ns2ir
	$(INSTALL) $< $@

$(INSTALL_LIBEXECDIR)/ns2ir/%: %
Leigh B. Stoller's avatar
Leigh B. Stoller committed
39
	@echo "Installing $<"
40
	-mkdir -p $(INSTALL_LIBEXECDIR)/ns2ir
Leigh B. Stoller's avatar
Leigh B. Stoller committed
41 42 43
	$(INSTALL) $< $@

clean: