Bump version to 0.3.5next
[archipelago] / xseg / tools / ganeti-hooks / Makefile
1 .PHONY: default clean install install-src
2
3 include $(XSEG_HOME)/base.mk
4
5 DEVFILES="Makefile"
6
7 HOOKS="instance-migrate-pre.d"
8
9 SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
10
11 default:
12
13 clean:
14
15 install:
16         install -d $(DESTDIR)$(ganetihooksdir)
17         @for f in $(HOOKS) ; do \
18                 make -C $$f install ; \
19         done
20
21 install-src:
22         install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
23         @for f in $(DEVFILES) ; do \
24                 install -o 0 -g 0 -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
25         done
26         @for f in $(HOOKS) ; do \
27                 make -C $$f install-src ; \
28         done
29