2 osdir=$(OS_DIR)/$(osname)
3 defaultdir=$(DEFAULT_DIR)
4 variantsdir=${sysconfdir}/ganeti/snf-image/variants
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
11 dist_os_DATA = ${srcdir}/ganeti_api_version ${srcdir}/parameters.list \
12 ${srcdir}/variants.list
14 dist_bin_SCRIPTS = snf-image-update-helper
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_IMG[@]|$(HELPER_IMG)|g' \
26 -e 's|@HELPER_KERNEL[@]|$(HELPER_KERNEL)|g' \
27 -e 's|@HELPER_INITRD[@]|$(HELPER_INITRD)|g' \
28 -e 's|@HELPER_PKG[@]|$(HELPER_PKG)|g' \
29 -e 's|@AWK[@]|$(AWK)|g' \
30 -e 's|@MKDIR_P[@]|$(MKDIR_P)|g' \
31 -e 's|@LOSETUP[@]|$(LOSETUP)|g' \
32 -e 's|@KPARTX[@]|$(KPARTX)|g' \
33 -e 's|@SFDISK[@]|$(SFDISK)|g' \
34 -e 's|@QEMU_IMG[@]|$(QEMU_IMG)|g' \
35 -e 's|@INSTALL_MBR[@]|$(INSTALL_MBR)|g' \
36 -e 's|@PROGRESS_MONITOR[@]|$(PROGRESS_MONITOR)|g' \
37 -e 's|@UNATTEND[@]|$(UNATTEND)|g' \
38 -e 's|@MULTISTRAP_CONFIG[@]|$(MULTISTRAP_CONFIG)|g'
43 test -f ./$@.in || srcdir=$(srcdir)/; \
44 $(edit) $${srcdir}$@.in >$@.tmp
48 @mkdir_p@ "$(DESTDIR)$(osdir)"
49 @mkdir_p@ "$(DESTDIR)$(variantsdir)"
50 touch "$(DESTDIR)$(variantsdir)/default.conf"
53 CLEANFILES = $(os_DATA) $(dist_bin_SCRIPTS)