Statistics
| Branch: | Tag: | Revision:

root / snf-image-host / Makefile.am @ 21be5a41

History | View | Annotate | Download (1.8 kB)

1
if NETWORKIMGSUPPORT
2
network_backend_support=yes
3
else
4
network_backend_support=no
5
endif
6

    
7
osname=$(PACKAGE)
8
osdir=$(OS_DIR)/$(osname)
9
defaultdir=$(DEFAULT_DIR)
10
variantsdir=${sysconfdir}/ganeti/snf-image/variants
11

    
12
dist_os_SCRIPTS = ${srcdir}/create ${srcdir}/import ${srcdir}/export \
13
			${srcdir}/rename ${srcdir}/verify ${srcdir}/pithcat
14

    
15
dist_os_DATA = ${srcdir}/ganeti_api_version ${srcdir}/parameters.list \
16
               ${srcdir}/variants.list
17

    
18
dist_bin_SCRIPTS = snf-image-update-helper
19

    
20
os_DATA = common.sh
21

    
22
edit = sed \
23
	   -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
24
	   -e 's|@localstatedir[@]|$(localstatedir)|g' \
25
	   -e 's|@osdir[@]|$(osdir)|g' \
26
	   -e 's|@osname[@]|$(osname)|g' \
27
	   -e 's|@defaultdir[@]|$(defaultdir)|g' \
28
	   -e 's|@HELPER_DIR[@]|$(HELPER_DIR)|g' \
29
	   -e 's|@HELPER_IMG[@]|$(HELPER_IMG)|g' \
30
	   -e 's|@HELPER_KERNEL[@]|$(HELPER_KERNEL)|g' \
31
	   -e 's|@HELPER_INITRD[@]|$(HELPER_INITRD)|g' \
32
	   -e 's|@HELPER_PKG[@]|$(HELPER_PKG)|g' \
33
	   -e 's|@AWK[@]|$(AWK)|g' \
34
	   -e 's|@MKDIR_P[@]|$(MKDIR_P)|g' \
35
	   -e 's|@LOSETUP[@]|$(LOSETUP)|g' \
36
	   -e 's|@KPARTX[@]|$(KPARTX)|g' \
37
	   -e 's|@SFDISK[@]|$(SFDISK)|g' \
38
	   -e 's|@QEMU_IMG[@]|$(QEMU_IMG)|g' \
39
	   -e 's|@INSTALL_MBR[@]|$(INSTALL_MBR)|g' \
40
	   -e 's|@PROGRESS_MONITOR[@]|$(PROGRESS_MONITOR)|g' \
41
	   -e 's|@UNATTEND[@]|$(UNATTEND)|g' \
42
	   -e 's|@progress_monitor_support[@]|$(progress_monitor_support)|g' \
43
	   -e 's|@network_backend_support[@]|$(network_backend_support)|g'
44

    
45
%:%.in Makefile
46
	rm -f $@ $@.tmp
47
	srcdir=''; \
48
		   test -f ./$@.in || srcdir=$(srcdir)/; \
49
		   $(edit) $${srcdir}$@.in >$@.tmp
50
	mv $@.tmp $@
51

    
52
install-exec-local:
53
	@mkdir_p@ "$(DESTDIR)$(osdir)"
54
	@mkdir_p@ "$(DESTDIR)$(variantsdir)"
55
	touch "$(DESTDIR)$(variantsdir)/default.conf"
56
	
57

    
58
CLEANFILES = $(os_DATA) $(dist_bin_SCRIPTS)