Commit e5c66752 authored by Austin Clements's avatar Austin Clements
Browse files

Added the makefile goop to pull in the Plab manager-related files

parent 18859b83
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved.
#
SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ../..
SUBDIR = tbsetup/plab
UNIFIED = @UNIFIED_BOSS_AND_OPS@
include $(OBJDIR)/Makeconf
SUBDIRS = libdslice etc
SBIN_STUFF = plabslice plabnode plabdaemon
LIB_STUFF = libplab.py
#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
#
all: $(SBIN_STUFF) $(LIB_STUFF) $(SUBDIRS)
include $(TESTBED_SRCDIR)/GNUmakerules
.PHONY: libdslice etc
libdslice:
@$(MAKE) -C libdslice all
etc:
@$(MAKE) -C etc all
install: all script-install subdir-install
#
# Automate this part at some point.
#
subdir-install:
@$(MAKE) -C libdslice install
@$(MAKE) -C etc install
script-install: $(addprefix $(INSTALL_SBINDIR)/, $(SBIN_STUFF)) \
$(addprefix $(INSTALL_LIBDIR)/, $(LIB_STUFF))
post-install:
@$(MAKE) -C etc post-install
chmod 775 $(INSTALL_SBINDIR)
chmod 775 $(INSTALL_LIBDIR)
chown root $(INSTALL_SBINDIR)/plabslice
chmod u+s $(INSTALL_SBINDIR)/plabslice
chown root $(INSTALL_SBINDIR)/plabnode
chmod u+s $(INSTALL_SBINDIR)/plabnode
chown root $(INSTALL_SBINDIR)/plabdaemon
chmod u+s $(INSTALL_SBINDIR)/plabdaemon
clean: subdir-clean
subdir-clean:
@$(MAKE) -C libdslice clean
@$(MAKE) -C etc clean
distclean: subdir-distclean
subdir-distclean:
@$(MAKE) -C libdslice distclean
@$(MAKE) -C etc distclean
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved.
#
SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ../../..
SUBDIR = tbsetup/plab/etc
UNIFIED = @UNIFIED_BOSS_AND_OPS@
include $(OBJDIR)/Makeconf
ETC_STUFF = cacert.pem cert.pem identity identity.pub key.pem \
plabroot.tgz pubkey.pem req.pem
#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
#
all: $(ETC_STUFF)
include $(TESTBED_SRCDIR)/GNUmakerules
install: all data-install
#
# Automate this part at some point.
#
data-install: $(addprefix $(INSTALL_ETCDIR)/plab/, $(ETC_STUFF))
post-install:
chmod 775 $(INSTALL_ETCDIR)
chmod 775 $(INSTALL_ETCDIR)/plab
chown root $(INSTALL_ETCDIR)/plab/identity
chmod 600 $(INSTALL_ETCDIR)/plab/identity
chown root $(INSTALL_ETCDIR)/plab/identity.pub
chmod 600 $(INSTALL_ETCDIR)/plab/identity.pub
clean:
$(INSTALL_ETCDIR)/plab/%: %
@echo "Installing $<"
-mkdir -p $(INSTALL_ETCDIR)/plab
$(INSTALL_DATA) $< $@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved.
#
SRCDIR = @srcdir@
TESTBED_SRCDIR = @top_srcdir@
OBJDIR = ../../..
SUBDIR = tbsetup/plab/libdslice
include $(OBJDIR)/Makeconf
#
# Force dependencies to make sure configure regenerates if the .in file
# is changed.
#
all:
include $(TESTBED_SRCDIR)/GNUmakerules
#
# Generate a list of all the files we want to install from the current
# directory and the source directory.
#
FILES = $(wildcard *.py)
FILES += $(wildcard $(SRCDIR)/*.py)
DSLICEFILES = $(wildcard dslice/*.py)
DSLICEFILES += $(wildcard $(SRCDIR)/dslice/*.py)
HTMLGENFILES = $(wildcard HTMLgen/*.py)
HTMLGENFILES += $(wildcard $(SRCDIR)/HTMLgen/*.py)
#
# Kill the directory part of the names. The vpath rule will do the rest.
#
ALLFILES = $(notdir $(FILES))
ALLDSLICE = $(notdir $(DSLICEFILES))
ALLHTMLGEN = $(notdir $(HTMLGENFILES))
install: $(addprefix $(INSTALL_LIBDIR)/dslice/, $(ALLFILES)) \
$(addprefix $(INSTALL_LIBDIR)/dslice/dslice/, $(ALLDSLICE)) \
$(addprefix $(INSTALL_LIBDIR)/dslice/HTMLgen/, $(ALLHTMLGEN))
post-install:
$(INSTALL_LIBDIR)/dslice/%: %
@echo "Installing $<"
-mkdir -p $(patsubst %/,%,$(dir $@))
$(INSTALL) $(subst $$,\$$,$<) $(subst $$,\$$,$@)
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