|
@@ -141,8 +141,9 @@ am__uninstall_files_from_dir = { \
|
141
|
141
|
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
142
|
142
|
$(am__cd) "$$dir" && rm -f $$files; }; \
|
143
|
143
|
}
|
144
|
|
-am__installdirs = "$(DESTDIR)$(lodel2_scripts_dir)"
|
145
|
|
-DATA = $(lodel2_scripts__DATA)
|
|
144
|
+am__installdirs = "$(DESTDIR)$(lodel2_scripts_dir)" \
|
|
145
|
+ "$(DESTDIR)$(lodel2confdir)"
|
|
146
|
+DATA = $(lodel2_scripts__DATA) $(lodel2conf_DATA)
|
146
|
147
|
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
147
|
148
|
distclean-recursive maintainer-clean-recursive
|
148
|
149
|
am__recursive_targets = \
|
|
@@ -288,9 +289,14 @@ top_builddir = @top_builddir@
|
288
|
289
|
top_srcdir = @top_srcdir@
|
289
|
290
|
SUBDIRS = slim
|
290
|
291
|
lodel2_scripts_dir = $(datadir)/lodel2/scripts
|
291
|
|
-lodel2_scripts__DATA = create_instance
|
292
|
|
-CLEANFILES = $(lodel2_scripts__DATA)
|
293
|
|
-do_subst = sed -e 's,\[@\]PKGPYTHONDIR\[@\],$(pkgpythondir),g'
|
|
292
|
+lodel2_scripts__DATA = create_instance mass_deploy create_mongodb.sh
|
|
293
|
+CLEANFILES = create_instance mass_deploy mass_deploy.cfg
|
|
294
|
+lodel2conf_DATA = mass_deploy.cfg
|
|
295
|
+lodel2confdir = $(sysconfdir)/lodel2
|
|
296
|
+do_subst = sed -e 's,\[@\]PKGPYTHONDIR\[@\],$(pkgpythondir),g' \
|
|
297
|
+ -e 's,\[@\]LODEL2_PROGSDIR\[@\],$(lodel2_scripts_dir),g' \
|
|
298
|
+ -e 's,\[@\]LODEL2_CONFDIR\[@\],$(lodel2confdir),g'
|
|
299
|
+
|
294
|
300
|
all: all-recursive
|
295
|
301
|
|
296
|
302
|
.SUFFIXES:
|
|
@@ -345,6 +351,27 @@ uninstall-lodel2_scripts_DATA:
|
345
|
351
|
@list='$(lodel2_scripts__DATA)'; test -n "$(lodel2_scripts_dir)" || list=; \
|
346
|
352
|
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
347
|
353
|
dir='$(DESTDIR)$(lodel2_scripts_dir)'; $(am__uninstall_files_from_dir)
|
|
354
|
+install-lodel2confDATA: $(lodel2conf_DATA)
|
|
355
|
+ @$(NORMAL_INSTALL)
|
|
356
|
+ @list='$(lodel2conf_DATA)'; test -n "$(lodel2confdir)" || list=; \
|
|
357
|
+ if test -n "$$list"; then \
|
|
358
|
+ echo " $(MKDIR_P) '$(DESTDIR)$(lodel2confdir)'"; \
|
|
359
|
+ $(MKDIR_P) "$(DESTDIR)$(lodel2confdir)" || exit 1; \
|
|
360
|
+ fi; \
|
|
361
|
+ for p in $$list; do \
|
|
362
|
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
|
363
|
+ echo "$$d$$p"; \
|
|
364
|
+ done | $(am__base_list) | \
|
|
365
|
+ while read files; do \
|
|
366
|
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(lodel2confdir)'"; \
|
|
367
|
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(lodel2confdir)" || exit $$?; \
|
|
368
|
+ done
|
|
369
|
+
|
|
370
|
+uninstall-lodel2confDATA:
|
|
371
|
+ @$(NORMAL_UNINSTALL)
|
|
372
|
+ @list='$(lodel2conf_DATA)'; test -n "$(lodel2confdir)" || list=; \
|
|
373
|
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
|
374
|
+ dir='$(DESTDIR)$(lodel2confdir)'; $(am__uninstall_files_from_dir)
|
348
|
375
|
|
349
|
376
|
# This directory's subdirectories are mostly independent; you can cd
|
350
|
377
|
# into them and run 'make' without going through this Makefile.
|
|
@@ -505,7 +532,7 @@ check: check-recursive
|
505
|
532
|
all-am: Makefile $(DATA)
|
506
|
533
|
installdirs: installdirs-recursive
|
507
|
534
|
installdirs-am:
|
508
|
|
- for dir in "$(DESTDIR)$(lodel2_scripts_dir)"; do \
|
|
535
|
+ for dir in "$(DESTDIR)$(lodel2_scripts_dir)" "$(DESTDIR)$(lodel2confdir)"; do \
|
509
|
536
|
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
510
|
537
|
done
|
511
|
538
|
install: install-recursive
|
|
@@ -559,7 +586,7 @@ info: info-recursive
|
559
|
586
|
|
560
|
587
|
info-am:
|
561
|
588
|
|
562
|
|
-install-data-am: install-lodel2_scripts_DATA
|
|
589
|
+install-data-am: install-lodel2_scripts_DATA install-lodel2confDATA
|
563
|
590
|
@$(NORMAL_INSTALL)
|
564
|
591
|
$(MAKE) $(AM_MAKEFLAGS) install-data-hook
|
565
|
592
|
install-dvi: install-dvi-recursive
|
|
@@ -604,7 +631,7 @@ ps: ps-recursive
|
604
|
631
|
|
605
|
632
|
ps-am:
|
606
|
633
|
|
607
|
|
-uninstall-am: uninstall-lodel2_scripts_DATA
|
|
634
|
+uninstall-am: uninstall-lodel2_scripts_DATA uninstall-lodel2confDATA
|
608
|
635
|
|
609
|
636
|
.MAKE: $(am__recursive_targets) install-am install-data-am \
|
610
|
637
|
install-strip
|
|
@@ -616,20 +643,29 @@ uninstall-am: uninstall-lodel2_scripts_DATA
|
616
|
643
|
install-data-am install-data-hook install-dvi install-dvi-am \
|
617
|
644
|
install-exec install-exec-am install-html install-html-am \
|
618
|
645
|
install-info install-info-am install-lodel2_scripts_DATA \
|
619
|
|
- install-man install-pdf install-pdf-am install-ps \
|
620
|
|
- install-ps-am install-strip installcheck installcheck-am \
|
621
|
|
- installdirs installdirs-am maintainer-clean \
|
|
646
|
+ install-lodel2confDATA install-man install-pdf install-pdf-am \
|
|
647
|
+ install-ps install-ps-am install-strip installcheck \
|
|
648
|
+ installcheck-am installdirs installdirs-am maintainer-clean \
|
622
|
649
|
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
|
623
|
650
|
pdf-am ps ps-am tags tags-am uninstall uninstall-am \
|
624
|
|
- uninstall-lodel2_scripts_DATA
|
|
651
|
+ uninstall-lodel2_scripts_DATA uninstall-lodel2confDATA
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+#There is clearly a way to factorise those rules
|
|
655
|
+mass_deploy: mass_deploy.sh
|
|
656
|
+ $(do_subst) < $(srcdir)/mass_deploy.sh > mass_deploy
|
|
657
|
+ chmod +x mass_deploy
|
625
|
658
|
|
|
659
|
+create_mongodb.sh: ;
|
|
660
|
+mass_deploy.cfg:
|
|
661
|
+ echo -e "#Uncomment following lines replacing values by your own\n#MONGODB_ADMIN_USER='admin'\n#MONGODB_ADMIN_PASSWORD='pass'\n#Following configurations are optional\nMONGODB_DB_PREFIX='lodel2'\n#You can give only an host or a HOSTNAME:PORT\n#WARNING !!! : mass_deploy script does not forward MONGODB_HOST in instances\n#configurations\n#MONGODB_HOST=''" > mass_deploy.cfg
|
626
|
662
|
|
627
|
663
|
create_instance: create_instance.sh
|
628
|
664
|
$(do_subst) < $(srcdir)/create_instance.sh > create_instance
|
629
|
665
|
chmod +x create_instance
|
630
|
666
|
|
631
|
667
|
install-data-hook:
|
632
|
|
- chmod +x $(datadir)/lodel2/scripts/create_instance
|
|
668
|
+ chmod +x $(datadir)/lodel2/scripts/*
|
633
|
669
|
|
634
|
670
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
635
|
671
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|