GNUmakefile.in 936 Bytes
Newer Older
1
2
#
# EMULAB-COPYRIGHT
3
# Copyright (c) 2006, 2007 University of Utah and the Flux Group.
4
5
6
7
8
9
10
11
12
# All rights reserved.
#

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ../..
SUBDIR		= pelab/bgmon

USERSBIN_STUFF	= opsrecv.pl manager.pl automanagerclient.pl
13
USERSLIB_STUFF	= libwanetmon.pm
14
15
16

include $(OBJDIR)/Makeconf

17
all: $(USERSLIB_STUFF) $(USERSBIN_STUFF)
18
19
20

include $(TESTBED_SRCDIR)/GNUmakerules

21
22
control-install: $(addprefix $(INSTALL_SBINDIR)/, $(USERSBIN_STUFF)) \
                 $(addprefix $(INSTALL_LIBDIR)/, $(USERSLIB_STUFF))
23

24
25
install: $(addprefix $(INSTALL_DIR)/opsdir/sbin/, $(USERSBIN_STUFF)) \
         $(addprefix $(INSTALL_DIR)/opsdir/lib/, $(USERSLIB_STUFF))
26
27
28
29
30

boss-install: install

clean:

Mike Hibler's avatar
Mike Hibler committed
31
32
33
34
35
$(INSTALL_DIR)/opsdir/lib/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_DIR)/opsdir/lib
	$(INSTALL) $< $@

36
37
38
39
$(INSTALL_DIR)/opsdir/sbin/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_DIR)/opsdir/sbin
	$(INSTALL) $< $@