Start autogenerating the create script
[ext/instance-debootstrap.git] / Makefile.am
1 osname=$(subst ganeti-instance-,,$(PACKAGE))
2
3 osdir=$(datadir)/ganeti/os/$(osname)
4
5 os_SCRIPTS = create
6 dist_os_SCRIPTS = import export rename
7 dist_os_DATA = ganeti_api_version
8
9 dist_doc_DATA = COPYING NEWS README
10
11 EXTRA_DIST = create.in
12
13 do_subst = sed -e 's,[@]sysconfdir[@],$(sysconfdir),g'
14
15 create: create.in Makefile
16         $(do_subst) < $< > $@
17         chmod +x $@
18
19 CLEANFILES = create