-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile.am
54 lines (41 loc) · 1.28 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
osname=$(subst ganeti-instance-,,$(PACKAGE))
osdir=$(OS_DIR)/$(osname)
variantsdir=$(DESTDIR)$(sysconfdir)/ganeti/instance-debootstrap/variants
defaultsdir=$(DESTDIR)$(sysconfdir)/default
dist_os_SCRIPTS = create import export rename verify
dist_os_DATA = ganeti_api_version variants.list parameters.list
os_DATA = common.sh
dist_doc_DATA = COPYING NEWS README
exampledir = $(docdir)/examples
exampleconfdir = $(exampledir)/confdata
dist_exampleconf_DATA = \
examples/hooks/confdata/defaultpasswords \
examples/hooks/confdata/timezone
dist_example_DATA = \
examples/hooks/defaultpasswords \
examples/hooks/grub \
examples/hooks/hosts \
examples/hooks/interfaces \
examples/hooks/ssh-keys \
examples/hooks/timezone
EXTRA_DIST = \
common.sh.in \
defaults \
$(TESTS)
do_subst = sed \
-e 's,[@]sysconfdir[@],$(sysconfdir),g' \
-e 's,[@]localstatedir[@],$(localstatedir),g'
common.sh: common.sh.in Makefile
$(do_subst) < $< > $@
TESTS = \
test/install-export-import
install-exec-local:
@mkdir_p@ $(variantsdir)
touch $(variantsdir)/default.conf
@mkdir_p@ $(defaultsdir)
$(INSTALL_DATA) $(top_srcdir)/defaults \
$(defaultsdir)/ganeti-instance-debootstrap
uninstall-local:
rm -f $(variantsdir)/default.conf
rm -f $(defaultsdir)/ganeti-instance-debootstrap
CLEANFILES = common.sh