GNUmakefile.in 1.83 KB
Newer Older
1
#
2
# Copyright (c) 2000-2014 University of Utah and the Flux Group.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# 
# {{{EMULAB-LICENSE
# 
# This file is part of the Emulab network testbed software.
# 
# This file is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
# 
# This file is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public
# License for more details.
# 
# You should have received a copy of the GNU Affero General Public License
# along with this file.  If not, see <http://www.gnu.org/licenses/>.
# 
# }}}
22
#
Leigh Stoller's avatar
Leigh Stoller committed
23

24 25 26 27 28
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= os

29
LBINDIR		= $(DESTDIR)/usr/local/bin
30
SYSTEM	       := $(shell uname -s)
31

32
include $(OBJDIR)/Makeconf
33

34
SUBDIRS	= 
35

36
all:	all-subdirs split-image.sh
37

38
include $(TESTBED_SRCDIR)/GNUmakerules
39

40
install: $(INSTALL_SBINDIR)/split-image.sh
41 42
	$(INSTALL_PROGRAM) $(SRCDIR)/template_record \
		$(INSTALL_DIR)/opsdir/bin/template_record
43 44

control-install: 
45
	$(INSTALL_PROGRAM) $(SRCDIR)/template_record $(LBINDIR)/template_record
46

47 48 49
client:

client-install: client
50
	$(INSTALL_PROGRAM) $(SRCDIR)/template_record $(LBINDIR)/template_record
51

52 53 54 55
subboss: client

subboss-install: subboss client-install

56 57 58
mfs:

mfs-install: mfs
59 60 61 62

frisbee-mfs:

frisbee-mfs-install: frisbee-mfs
63

64
cdboot-install: mfs-install
65

66
remote-install: 
67

68
clean:		clean-subdirs
69 70 71 72
distclean:	subdir-distclean

subdir-distclean:

73 74 75 76 77 78
# How to recursively descend into subdirectories to make general
# targets such as `all'.
%.MAKE:
	@$(MAKE) -C $(dir $@) $(basename $(notdir $@))
%-subdirs: $(addsuffix /%.MAKE,$(SUBDIRS)) ;

79 80
.PHONY:	$(SUBDIRS)