Statistics
| Branch: | Revision:

root / Makefile.am @ 47c86659

History | View | Annotate | Download (1.3 kB)

1
osdir=$(OS_DIR)/$(OS_NAME)
2
linuxcustomdir=${sysconfdir}/ganeti/instance-image/hooks/linux
3

    
4
if WINSUPPORT
5
windowscustomdir=${sysconfdir}/ganeti/instance-image/hooks/windows
6
endif
7

    
8
configdir=${sysconfdir}/ganeti/instance-image
9
variantsdir=${sysconfdir}/ganeti/instance-image/variants
10
networksdir=${sysconfdir}/ganeti/instance-image/networks
11
overlaysdir=${sysconfdir}/ganeti/instance-image/overlays
12
toolsdir=$(OS_DIR)/$(OS_NAME)/tools
13

    
14
dist_os_SCRIPTS = create import export rename verify
15
dist_tools_SCRIPTS = tools/*
16
dist_os_DATA = ganeti_api_version parameters.list common_linux.sh
17
if WINSUPPORT
18
dist_os_DATA += common_windows.sh
19
endif
20
dist_config_DATA = variants.list
21
os_DATA = common.sh
22

    
23
dist_linuxcustom_DATA = example/hooks/linux/*
24
if WINSUPPORT
25
dist_windowscustom_DATA = example/hooks/windows/*
26
endif
27
dist_doc_DATA = COPYING NEWS README
28

    
29
EXTRA_DIST = common.sh.in defaults
30

    
31
common.sh: common.sh.in 
32

    
33
install-exec-local:
34
	@mkdir_p@ "$(DESTDIR)$(osdir)"
35
	@mkdir_p@ "$(DESTDIR)$(variantsdir)"
36
	@mkdir_p@ "$(DESTDIR)$(networksdir)/subnets"
37
	@mkdir_p@ "$(DESTDIR)$(networksdir)/instances"
38
	@mkdir_p@ "$(DESTDIR)$(overlaysdir)"
39
	@mkdir_p@ "$(DESTDIR)$(localstatedir)/cache/ganeti-instance-image"
40
	touch "$(DESTDIR)$(variantsdir)/default.conf"
41
	ln -s $(DESTDIR)$(configdir)/variants.list $(DESTDIR)$(osdir)/variants.list
42

    
43
CLEANFILES = common.sh