|
@@ -1,19 +1,28 @@
|
1
|
1
|
SUBDIRS=slim
|
2
|
2
|
|
3
|
3
|
lodel2_scripts_dir = $(datadir)/lodel2/scripts
|
4
|
|
-lodel2_scripts__DATA = create_instance mass_deploy
|
5
|
|
-CLEANFILES = $(lodel2_scripts__DATA)
|
|
4
|
+lodel2_scripts__DATA = create_instance mass_deploy create_mongodb.sh
|
|
5
|
+CLEANFILES = create_instance mass_deploy
|
6
|
6
|
|
7
|
|
-do_subst = sed -e 's,\[@\]PKGPYTHONDIR\[@\],$(pkgpythondir),g'
|
|
7
|
+lodel2conf_DATA = ./create_mongodb_config.cfg
|
|
8
|
+lodel2confdir=$(sysconfdir)/lodel2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+do_subst = sed -e 's,\[@\]PKGPYTHONDIR\[@\],$(pkgpythondir),g' \
|
|
12
|
+ -e 's,\[@\]LODEL2_PROGSDIR\[@\],$(lodel2_scripts_dir),g' \
|
|
13
|
+ -e 's,\[@\]LODEL2_CONFDIR\[@\],$(lodel2confdir),g'
|
8
|
14
|
|
9
|
15
|
#There is clearly a way to factorise those rules
|
10
|
16
|
mass_deploy: mass_deploy.sh
|
11
|
17
|
$(do_subst) < $(srcdir)/mass_deploy.sh > mass_deploy
|
12
|
18
|
chmod +x mass_deploy
|
13
|
19
|
|
|
20
|
+create_mongodb.sh: ;
|
|
21
|
+create_mongodb_config.cfg: ;
|
|
22
|
+
|
14
|
23
|
create_instance: create_instance.sh
|
15
|
24
|
$(do_subst) < $(srcdir)/create_instance.sh > create_instance
|
16
|
25
|
chmod +x create_instance
|
17
|
26
|
|
18
|
27
|
install-data-hook:
|
19
|
|
- chmod +x $(datadir)/lodel2/scripts/create_instance $(datadir)/lodel2/scripts/mass_deploy
|
|
28
|
+ chmod +x $(datadir)/lodel2/scripts/*
|