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