# # EMULAB-COPYRIGHT # Copyright (c) 2000-2005 University of Utah and the Flux Group. # All rights reserved. # SRCDIR = @srcdir@ TESTBED_SRCDIR = @top_srcdir@ OBJDIR = .. SUBDIR = utils UNIFIED = @UNIFIED_BOSS_AND_OPS@ include $(OBJDIR)/Makeconf SUBDIRS = nsgen BIN_SCRIPTS = delay_config sshtb create_image node_admin link_config \ setdest loghole webcopy linkmon_ctl SBIN_SCRIPTS = vlandiff vlansync withadminprivs export_tables cvsupd.pl \ eventping grantnodetype import_commitlog dhcpd_wrapper \ opsreboot deletenode node_statewait grabwebcams \ grabswitchconfig backupswitches cvsinit LIBEXEC_SCRIPTS = webcreateimage newnode webdeletenode spewleds webcopy \ websetdest spewsource weblinkmon_ctl webcvsweb # # Force dependencies on the scripts so that they will be rerun through # configure if the .in file is changed. # all: $(BIN_SCRIPTS) $(SBIN_SCRIPTS) $(LIBEXEC_SCRIPTS) $(SUBDIRS) \ firstuser setbuildinfo include $(TESTBED_SRCDIR)/GNUmakerules install: $(addprefix $(INSTALL_BINDIR)/, $(BIN_SCRIPTS)) \ $(addprefix $(INSTALL_SBINDIR)/, $(SBIN_SCRIPTS)) \ $(addprefix $(INSTALL_LIBEXECDIR)/, $(LIBEXEC_SCRIPTS)) \ subdir-install $(INSTALL_PROGRAM) loghole $(INSTALL_DIR)/opsdir/bin/loghole -mkdir -p $(INSTALL_DIR)/opsdir/man/man1 $(INSTALL) -m 0644 $(SRCDIR)/loghole.1 \ $(INSTALL_DIR)/opsdir/man/man1/loghole.1 rm -f $(INSTALL_SBINDIR)/wap ln -s withadminprivs $(INSTALL_SBINDIR)/wap @echo "Don't forget to do a post-install as root" boss-install: install post-install: chown root $(INSTALL_SBINDIR)/grabwebcams chmod u+s $(INSTALL_SBINDIR)/grabwebcams # # Control node installation (okay, plastic) # control-install: # # Automate this part at some point. # subdir-install: @$(MAKE) -C nsgen install clean: subdir-clean subdir-clean: @$(MAKE) -C nsgen clean