From: Dan Scott Date: Wed, 1 Aug 2012 17:10:34 +0000 (-0400) Subject: Add make rules to install custom templates X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8294750a92033045b39544f5bf6c1cbd51f1ff42;p=contrib%2FConifer.git Add make rules to install custom templates As long as the custom template directories are named Open-ILS/src/templates_* then they'll automatically get installed via "make install". Signed-off-by: Dan Scott --- diff --git a/Makefile.am b/Makefile.am index 35a79cd8f7..e64bca408d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -15,6 +15,7 @@ export ETCDIR=@sysconfdir@ export WEBDIR=@localstatedir@/web export CGIDIR=@localstatedir@/cgi-bin export TEMPLATEDIR=@localstatedir@/templates +export CUSTOM_TEMPLATES=@localstatedir@/. export UPDATESDIR=@localstatedir@/updates export datadir=@localstatedir@/data diff --git a/Open-ILS/src/Makefile.am b/Open-ILS/src/Makefile.am index 8fe83020ff..3f26873c4b 100644 --- a/Open-ILS/src/Makefile.am +++ b/Open-ILS/src/Makefile.am @@ -218,6 +218,7 @@ ilscore-install: $(MKDIR_P) $(DESTDIR)$(TEMPLATEDIR) @echo "Installing templates to $(DESTDIR)$(TEMPLATEDIR)" cp -r @srcdir@/templates/* $(DESTDIR)$(TEMPLATEDIR) + cp -r @srcdir@/templates_* $(DESTDIR)$(CUSTOM_TEMPLATES) $(MKDIR_P) $(DESTDIR)$(datadir)/overdue/ sed -i 's|LOCALSTATEDIR|@localstatedir@|g' '$(DESTDIR)@sysconfdir@/oils_sip.xml.example' sed -i 's|SYSCONFDIR|@sysconfdir@|g' '$(DESTDIR)@sysconfdir@/oils_sip.xml.example'