Commit 95218eb2 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add a hand generated Makeconf file, to be later build with configure.

Add a top level rules file with common stuff like install rules.
Beef up tbsetup makefile, and include above files. Add install of all
the tbsetup programs to the bin dir and to the bogus lib/tbsetup
parent 498f2452
# Insert Copyright Here.
@echo "Installing $<"
-mkdir -p $(INSTALL_BINDIR)
$(INSTALL) $< $@
$(INSTALL_BINDIR)/%: %.tcl
@echo "Installing $<"
-mkdir -p $(INSTALL_BINDIR)
$(INSTALL) $< $@
# Stick all the little piddly defs in here.
prefix = /usr/testbed
exec_prefix = ${prefix}
INSTALL = /usr/bin/install -c
INSTALL_BINDIR = $(exec_prefix)/bin
INSTALL_LIBDIR = $(exec_prefix)/lib
INSTALL_WWWDIR = $(exec_prefix)/www
SCRIPTS = mkprojdir_wrapper #
SUSCRIPTS = mkprojdir # Insert Copyright Here.
include ../Makeconf
include ../GNUmakerules
INSTALL = install -c SCRIPTS = mkprojdir_wrapper tbdoit tbstopit mkexpdir \
INSTALL_BINDIR = /usr/testbed/bin mkacct rmacct delay_setup ifc_setup ifc_filegen \
ir2ifc power resetvlans savevlans snmpit tbend \
tbprerun tbreport vpower vsnmpit
SUSCRIPTS = mkprojdir
all: $(BINS) all: $(BINS)
# Currently, all the stuff that gets installed in the bin directory
# gets duplicated in lib/tbsetup.
install: $(addprefix $(INSTALL_BINDIR)/, $(SCRIPTS)) \ install: $(addprefix $(INSTALL_BINDIR)/, $(SCRIPTS)) \
$(addprefix $(INSTALL_BINDIR)/, $(SUSCRIPTS)) $(addprefix $(INSTALL_BINDIR)/, $(SUSCRIPTS)) \
$(addprefix $(INSTALL_LIBTBDIR)/, $(SCRIPTS)) \
@echo "Don't forget to do a post-install as root" @echo "Don't forget to do a post-install as root"
# Leave these rules here. They should be flushed when we no longer
# dup this stuff.
@echo "Installing $<"
$(INSTALL) $< $@
@echo "Installing $<" @echo "Installing $<"
-mkdir -p $(INSTALL_BINDIR) -mkdir -p $(INSTALL_LIBTBDIR)
$(INSTALL) $< $@ $(INSTALL) $< $@
post-install: post-install:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment