Commit 95218eb2 authored by Leigh Stoller's avatar Leigh Stoller

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
directory.
parent 498f2452
#
# Insert Copyright Here.
#
$(INSTALL_BINDIR)/%: %
@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_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
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
INSTALL_BINDIR = /usr/testbed/bin
SCRIPTS = mkprojdir_wrapper tbdoit tbstopit mkexpdir \
mkacct rmacct delay_setup ifc_setup ifc_filegen \
ir2ifc power resetvlans savevlans snmpit tbend \
tbprerun tbreport vpower vsnmpit
SUSCRIPTS = mkprojdir
all: $(BINS)
#
# Currently, all the stuff that gets installed in the bin directory
# gets duplicated in lib/tbsetup.
#
INSTALL_LIBTBDIR = $(INSTALL_LIBDIR)/tbsetup
install: $(addprefix $(INSTALL_BINDIR)/, $(SCRIPTS)) \
$(addprefix $(INSTALL_BINDIR)/, $(SUSCRIPTS))
$(addprefix $(INSTALL_BINDIR)/, $(SUSCRIPTS)) \
$(addprefix $(INSTALL_LIBTBDIR)/, $(SCRIPTS)) \
$(addprefix $(INSTALL_LIBTBDIR)/, $(SUSCRIPTS))
@echo "Don't forget to do a post-install as root"
$(INSTALL_BINDIR)/%: %
#
# Leave these rules here. They should be flushed when we no longer
# dup this stuff.
#
$(INSTALL_LIBTBDIR)/%: %
@echo "Installing $<"
-mkdir -p $(INSTALL_LIBTBDIR)
$(INSTALL) $< $@
$(INSTALL_LIBTBDIR)/%: %.tcl
@echo "Installing $<"
-mkdir -p $(INSTALL_BINDIR)
-mkdir -p $(INSTALL_LIBTBDIR)
$(INSTALL) $< $@
post-install:
......
Markdown is supported
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