Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 87 lines (70 sloc) 2.514 kB
ad73c2c @grze initial import
grze authored
1 # top-level Eucalyptus makefile
2 #
3 #
4
5 include Makedefs
6
7 # notes: storage has to preceed node and node has to preceed cluster
8 SUBDIRS = tools \
9 util \
10 net \
11 storage \
12 gatherlog \
13 node \
14 cluster \
15 clc
16
17 .PHONY: all clean distclean build
18
19 all: build
20
21 help:
22 @echo; echo "Available targets:"
23 @echo " all this is the default target: it builds eucalyptus"
24 @echo " install install eucalyptus"
25 @echo " clean remove objects file and compile by-products"
26 @echo " distclean restore the source tree to a pristine state"
27 @echo
28
29
30 tags:
31 @echo making tags for emacs and vi
32 find cluster net node storage tools util -name "*.[chCH]" -print | xargs ctags
33 find cluster net node storage tools util -name "*.[chCH]" -print | xargs etags
34
35 build: Makedefs
36 @for subdir in $(SUBDIRS); do \
37 (cd $$subdir && $(MAKE) $@) || exit $$? ; done
38
39 deploy: build
40 @for subdir in $(SUBDIRS); do \
41 (cd $$subdir && $(MAKE) $@) || exit $$? ; done
42
43 install: deploy
44 @$(INSTALL) -d $(DESTDIR)$(prefix)
45 @$(INSTALL) -d $(DESTDIR)$(etcdir)/eucalyptus/cloud.d
46 @$(INSTALL) -d $(DESTDIR)$(etcdir)/eucalyptus/nc-hooks
47 @$(INSTALL) -m 0644 VERSION $(DESTDIR)$(etcdir)/eucalyptus/eucalyptus-version
48 @$(INSTALL) -d $(DESTDIR)$(etcdir)/init.d
49 @$(INSTALL) -d $(DESTDIR)$(vardir)/run/eucalyptus/net
50 @$(INSTALL) -d $(DESTDIR)$(vardir)/lib/eucalyptus/keys
51 @$(INSTALL) -d $(DESTDIR)$(vardir)/lib/eucalyptus/CC
52 @$(INSTALL) -d $(DESTDIR)$(vardir)/log/eucalyptus
53 @$(INSTALL) -d $(DESTDIR)$(datarootdir)/eucalyptus
54 @$(INSTALL) -d $(DESTDIR)$(datarootdir)/eucalyptus/doc
55 @$(INSTALL) -d $(DESTDIR)$(usrdir)/sbin
56 @$(INSTALL) -d $(DESTDIR)$(usrdir)/lib/eucalyptus
57 @$(INSTALL) -d $(DESTDIR)$(etcdir)/bash_completion.d
58 @for subdir in $(SUBDIRS); do \
59 (cd $$subdir && $(MAKE) $@) || exit $$? ; done
60
61 uninstall:
62 @$(RM) -f $(DESTDIR)$(etcdir)/eucalyptus/eucalyptus-version
63 @for subdir in $(SUBDIRS); do \
64 (cd $$subdir && $(MAKE) $@) || exit $$? ; done
65
66 clean:
67 @for subdir in $(SUBDIRS); do \
68 (cd $$subdir && $(MAKE) $@) || exit $$? ; done
69 @rm -f tags TAGS
70
71 distclean: clean
72 @for subdir in $(SUBDIRS); do \
73 (cd $$subdir && $(MAKE) $@) || exit $$? ; done
74 @rm -f config.cache config.log config.status Makedefs tags TAGS
75 @# they where part of CLEAN
76 @rm -rf lib
77
78 Makedefs: Makedefs.in config.status
79 ./config.status
80
81 config.status: configure
82 @if test ! -x ./config.status; then \
83 echo "you have to run ./configure!"; exit 1; fi
84 ./config.status --recheck
85
86 # DO NOT DELETE
Something went wrong with that request. Please try again.