Statistics
| Branch: | Tag: | Revision:

root / snf-image-host / Makefile.am @ 54c9b524

History | View | Annotate | Download (2 kB)

1
if PROGMONSUPPORT
2
progress_monitor_support=yes
3
else
4
progress_monitor_support=no
5
endif
6

    
7
if PITHOSIMGSUPPORT
8
pithos_backend_support=yes
9
else
10
pithos_backend_support=no
11
endif
12

    
13
if NETWORKIMGSUPPORT
14
network_backend_support=yes
15
else
16
network_backend_support=no
17
endif
18

    
19
osname=$(PACKAGE)
20
osdir=$(OS_DIR)/$(osname)
21
defaultdir=$(DEFAULT_DIR)
22
variantsdir=${sysconfdir}/ganeti/snf-image/variants
23

    
24
dist_os_SCRIPTS = ${srcdir}/create ${srcdir}/import ${srcdir}/export \
25
			${srcdir}/rename ${srcdir}/verify
26
if PITHOSIMGSUPPORT
27
dist_os_SCRIPTS += ${srcdir}/pithcat
28
endif
29
	
30
dist_os_DATA = ${srcdir}/ganeti_api_version ${srcdir}/parameters.list \
31
               ${srcdir}/variants.list
32

    
33
dist_bin_SCRIPTS = snf-image-update-helper
34

    
35
os_DATA = common.sh
36

    
37
edit = sed \
38
	   -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
39
	   -e 's|@localstatedir[@]|$(localstatedir)|g' \
40
	   -e 's|@osdir[@]|$(osdir)|g' \
41
	   -e 's|@osname[@]|$(osname)|g' \
42
	   -e 's|@defaultdir[@]|$(defaultdir)|g' \
43
	   -e 's|@HELPER_DIR[@]|$(HELPER_DIR)|g' \
44
	   -e 's|@HELPER_IMG[@]|$(HELPER_IMG)|g' \
45
	   -e 's|@HELPER_KERNEL[@]|$(HELPER_KERNEL)|g' \
46
	   -e 's|@HELPER_INITRD[@]|$(HELPER_INITRD)|g' \
47
	   -e 's|@HELPER_PKG[@]|$(HELPER_PKG)|g' \
48
	   -e 's|@AWK[@]|$(AWK)|g' \
49
	   -e 's|@MKDIR_P[@]|$(MKDIR_P)|g' \
50
	   -e 's|@LOSETUP[@]|$(LOSETUP)|g' \
51
	   -e 's|@KPARTX[@]|$(KPARTX)|g' \
52
	   -e 's|@SFDISK[@]|$(SFDISK)|g' \
53
	   -e 's|@QEMU_IMG[@]|$(QEMU_IMG)|g' \
54
	   -e 's|@INSTALL_MBR[@]|$(INSTALL_MBR)|g' \
55
	   -e 's|@PROGRESS_MONITOR[@]|$(PROGRESS_MONITOR)|g' \
56
	   -e 's|@progress_monitor_support[@]|$(progress_monitor_support)|g' \
57
	   -e 's|@pithos_backend_support[@]|$(pithos_backend_support)|g' \
58
	   -e 's|@network_backend_support[@]|$(network_backend_support)|g'
59

    
60
%:%.in Makefile
61
	rm -f $@ $@.tmp
62
	srcdir=''; \
63
		   test -f ./$@.in || srcdir=$(srcdir)/; \
64
		   $(edit) $${srcdir}$@.in >$@.tmp
65
	mv $@.tmp $@
66

    
67
install-exec-local:
68
	@mkdir_p@ "$(DESTDIR)$(osdir)"
69
	@mkdir_p@ "$(DESTDIR)$(variantsdir)"
70
	touch "$(DESTDIR)$(variantsdir)/default.conf"
71
	
72

    
73
CLEANFILES = $(os_DATA) $(dist_bin_SCRIPTS)