Statistics
| Branch: | Revision:

root / Makefile.am @ 5dc61974

History | View | Annotate | Download (1.1 kB)

1
osdir=$(OS_DIR)/$(OS_NAME)
2
customdir=${sysconfdir}/ganeti/instance-image/hooks
3
configdir=${sysconfdir}/ganeti/instance-image
4
variantsdir=${sysconfdir}/ganeti/instance-image/variants
5
networksdir=${sysconfdir}/ganeti/instance-image/networks
6
overlaysdir=${sysconfdir}/ganeti/instance-image/overlays
7
toolsdir=$(OS_DIR)/$(OS_NAME)/tools
8

    
9
dist_os_SCRIPTS = create import export rename verify
10
dist_tools_SCRIPTS = tools/*
11
dist_os_DATA = ganeti_api_version parameters.list common_linux.sh
12
dist_config_DATA = variants.list
13
os_DATA = common.sh
14

    
15
dist_custom_DATA = example/hooks/*
16

    
17
dist_doc_DATA = COPYING NEWS README
18

    
19
EXTRA_DIST = common.sh.in defaults
20

    
21
common.sh: common.sh.in 
22

    
23
install-exec-local:
24
	@mkdir_p@ "$(DESTDIR)$(osdir)"
25
	@mkdir_p@ "$(DESTDIR)$(variantsdir)"
26
	@mkdir_p@ "$(DESTDIR)$(networksdir)/subnets"
27
	@mkdir_p@ "$(DESTDIR)$(networksdir)/instances"
28
	@mkdir_p@ "$(DESTDIR)$(overlaysdir)"
29
	@mkdir_p@ "$(DESTDIR)$(localstatedir)/cache/ganeti-instance-image"
30
	touch "$(DESTDIR)$(variantsdir)/default.conf"
31
	ln -s $(DESTDIR)$(configdir)/variants.list $(DESTDIR)$(osdir)/variants.list
32

    
33
CLEANFILES = common.sh