From 8294750a92033045b39544f5bf6c1cbd51f1ff42 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 1 Aug 2012 13:10:34 -0400 Subject: [PATCH] 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 --- Makefile.am | 1 + Open-ILS/src/Makefile.am | 1 + 2 files changed, 2 insertions(+) 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' -- 2.11.0