GNUmakefile.in 1.13 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
#
# EMULAB-COPYRIGHT
# Copyright (c) 2006 University of Utah and the Flux Group.
# All rights reserved.
#

#
# Insert Copyright Here.
#
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ../..
SUBDIR		= tbsetup/checkup

include $(OBJDIR)/Makeconf

LIB_STUFF     = linktest.ns
LIBEXEC_STUFF = example_checkup
SBIN_STUFF    = checkup_daemon
MAN_STUFF     = checkup_daemon.8

#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
all: $(LIB_STUFF) $(SBIN_STUFF)

include $(TESTBED_SRCDIR)/GNUmakerules

install: $(addprefix $(INSTALL_SBINDIR)/, $(SBIN_STUFF)) \
	$(addprefix $(INSTALL_LIBDIR)/checkup/, $(LIB_STUFF)) \
	$(addprefix $(INSTALL_LIBEXECDIR)/checkup/, $(LIBEXEC_STUFF)) \
	$(addprefix $(INSTALL_DIR)/man/man8/, $(MAN_STUFF))

$(INSTALL_DIR)/man/man8/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_DIR)/man/man8
	$(INSTALL_DATA) $< $@

$(INSTALL_LIBDIR)/checkup/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_LIBDIR)/checkup
43
	$(INSTALL_DATA) $< $@
44 45 46 47 48 49 50

$(INSTALL_LIBEXECDIR)/checkup/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_LIBEXECDIR)/checkup
	$(INSTALL) $< $@

clean: