Add make rules to install custom templates
authorDan Scott <dscott@laurentian.ca>
Wed, 1 Aug 2012 17:10:34 +0000 (13:10 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 1 Aug 2012 17:10:34 +0000 (13:10 -0400)
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 <dscott@laurentian.ca>
Makefile.am
Open-ILS/src/Makefile.am

index 35a79cd..e64bca4 100644 (file)
@@ -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
index 8fe8302..3f26873 100644 (file)
@@ -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'