root / snf-image-host / Makefile.am @ c8230353
History | View | Annotate | Download (1.9 kB)
1 |
if PITHOSIMGSUPPORT |
---|---|
2 |
pithos_backend_support=yes |
3 |
else |
4 |
pithos_backend_support=no |
5 |
endif |
6 |
|
7 |
if NETWORKIMGSUPPORT |
8 |
network_backend_support=yes |
9 |
else |
10 |
network_backend_support=no |
11 |
endif |
12 |
|
13 |
osname=$(PACKAGE) |
14 |
osdir=$(OS_DIR)/$(osname) |
15 |
defaultdir=$(DEFAULT_DIR) |
16 |
variantsdir=${sysconfdir}/ganeti/snf-image/variants |
17 |
|
18 |
dist_os_SCRIPTS = ${srcdir}/create ${srcdir}/import ${srcdir}/export \ |
19 |
${srcdir}/rename ${srcdir}/verify |
20 |
if PITHOSIMGSUPPORT |
21 |
dist_os_SCRIPTS += ${srcdir}/pithcat |
22 |
endif |
23 |
|
24 |
dist_os_DATA = ${srcdir}/ganeti_api_version ${srcdir}/parameters.list \ |
25 |
${srcdir}/variants.list |
26 |
|
27 |
dist_bin_SCRIPTS = snf-image-update-helper |
28 |
|
29 |
os_DATA = common.sh |
30 |
|
31 |
edit = sed \ |
32 |
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \ |
33 |
-e 's|@localstatedir[@]|$(localstatedir)|g' \ |
34 |
-e 's|@osdir[@]|$(osdir)|g' \ |
35 |
-e 's|@osname[@]|$(osname)|g' \ |
36 |
-e 's|@defaultdir[@]|$(defaultdir)|g' \ |
37 |
-e 's|@HELPER_DIR[@]|$(HELPER_DIR)|g' \ |
38 |
-e 's|@HELPER_IMG[@]|$(HELPER_IMG)|g' \ |
39 |
-e 's|@HELPER_KERNEL[@]|$(HELPER_KERNEL)|g' \ |
40 |
-e 's|@HELPER_INITRD[@]|$(HELPER_INITRD)|g' \ |
41 |
-e 's|@HELPER_PKG[@]|$(HELPER_PKG)|g' \ |
42 |
-e 's|@AWK[@]|$(AWK)|g' \ |
43 |
-e 's|@MKDIR_P[@]|$(MKDIR_P)|g' \ |
44 |
-e 's|@LOSETUP[@]|$(LOSETUP)|g' \ |
45 |
-e 's|@KPARTX[@]|$(KPARTX)|g' \ |
46 |
-e 's|@SFDISK[@]|$(SFDISK)|g' \ |
47 |
-e 's|@QEMU_IMG[@]|$(QEMU_IMG)|g' \ |
48 |
-e 's|@INSTALL_MBR[@]|$(INSTALL_MBR)|g' \ |
49 |
-e 's|@PROGRESS_MONITOR[@]|$(PROGRESS_MONITOR)|g' \ |
50 |
-e 's|@progress_monitor_support[@]|$(progress_monitor_support)|g' \ |
51 |
-e 's|@pithos_backend_support[@]|$(pithos_backend_support)|g' \ |
52 |
-e 's|@network_backend_support[@]|$(network_backend_support)|g' |
53 |
|
54 |
%:%.in Makefile |
55 |
rm -f $@ $@.tmp |
56 |
srcdir=''; \ |
57 |
test -f ./$@.in || srcdir=$(srcdir)/; \ |
58 |
$(edit) $${srcdir}$@.in >$@.tmp |
59 |
mv $@.tmp $@ |
60 |
|
61 |
install-exec-local: |
62 |
@mkdir_p@ "$(DESTDIR)$(osdir)" |
63 |
@mkdir_p@ "$(DESTDIR)$(variantsdir)" |
64 |
touch "$(DESTDIR)$(variantsdir)/default.conf" |
65 |
|
66 |
|
67 |
CLEANFILES = $(os_DATA) $(dist_bin_SCRIPTS) |