GNUmakefile.in 1.48 KB
Newer Older
1
#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
2
# EMULAB-COPYRIGHT
Mike Hibler's avatar
Mike Hibler committed
3
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
Leigh B. Stoller's avatar
Leigh B. Stoller committed
4
# All rights reserved.
5
#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
6

7
8
9
10
11
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= os

12
LBINDIR		= $(DESTDIR)/usr/local/bin
13
SYSTEM	       := $(shell uname -s)
14

15
include $(OBJDIR)/Makeconf
16

17
SUBDIRS	= imagezip frisbee.redux growdisk syncd
18

19
all:	$(SUBDIRS) split-image.sh
20

21
include $(TESTBED_SRCDIR)/GNUmakerules
22

23
24
imagezip:
	@$(MAKE) -C imagezip all
25

Leigh B. Stoller's avatar
Leigh B. Stoller committed
26
27
28
frisbee.redux:
	@$(MAKE) -C frisbee.redux all

29
30
31
syncd:
	@$(MAKE) -C syncd all

32
install: $(INSTALL_SBINDIR)/split-image.sh
33
	@$(MAKE) -C imagezip install
Leigh B. Stoller's avatar
Leigh B. Stoller committed
34
	@$(MAKE) -C frisbee.redux install
35
36
37

control-install: 
	@$(MAKE) -C imagezip install
38

39
client-install: 
40
41
	$(INSTALL) -m 755 -o root -g wheel -d $(LBINDIR)
	$(INSTALL_PROGRAM) $(SRCDIR)/install-tarfile $(LBINDIR)/install-tarfile
42
	$(INSTALL_PROGRAM) $(SRCDIR)/install-rpm $(LBINDIR)/install-rpm
43
ifneq ($(SYSTEM),Linux)
44
45
	$(INSTALL_PROGRAM) $(SRCDIR)/create-image $(LBINDIR)/create-image
	$(MAKE) -C imagezip client-install
46
endif
47
48
49
50
51
	$(MAKE) -C syncd client-install

remote-install: 
	$(INSTALL) -m 755 -o root -g wheel -d $(LBINDIR)
	$(INSTALL_PROGRAM) $(SRCDIR)/install-tarfile $(LBINDIR)/install-tarfile
52
	$(INSTALL_PROGRAM) $(SRCDIR)/install-rpm $(LBINDIR)/install-rpm
53

54
55
56
clean:		subdir-clean

subdir-clean:
57
	@$(MAKE) -C imagezip clean
Leigh B. Stoller's avatar
Leigh B. Stoller committed
58
	@$(MAKE) -C frisbee.redux clean
Mike Hibler's avatar
Mike Hibler committed
59
60
	@$(MAKE) -C growdisk clean
	@$(MAKE) -C syncd clean
61
62
63
64
65
66
67
68

distclean:	subdir-distclean

subdir-distclean:
	@$(MAKE) -C imagezip distclean

.PHONY:	$(SUBDIRS)