LP#1281744 Aged hold purging column repair
[working/Evergreen.git] / Open-ILS / web / Makefile.am
1 #---------------------------------------------------------
2 # Makefile.am for web
3 ## Process this file with automake to generate Makefile.in
4 #---------------------------------------------------------
5
6 webdir = $(WEBDIR)
7 opacjsdir = $(DESTDIR)$(WEBDIR)/opac/common/js
8 jsdojodir = $(DESTDIR)$(WEBDIR)/js/dojo
9 jsdojoosrfdir = $(DESTDIR)$(WEBDIR)/js/dojo/opensrf
10 opacextrasdir = $(DESTDIR)$(WEBDIR)/opac/extras/xsl/
11 reportsdir = $(WEBDIR)/reports/
12
13 if BUILDILSWEB
14 OILSWEB_INST = webcore-install offline-install
15
16 #webcore-install
17
18 reports_SCRIPTS = @top_srcdir@/Open-ILS/xul/staff_client/server/admin/adminlib.js
19 OPACJS = $(OPENSRF_LIBS)/javascript/DojoSRF.js \
20          $(OPENSRF_LIBS)/javascript/JSON_v1.js \
21          $(OPENSRF_LIBS)/javascript/md5.js \
22          $(OPENSRF_LIBS)/javascript/opensrf.js \
23          $(OPENSRF_LIBS)/javascript/opensrf_xhr.js \
24          $(OPENSRF_LIBS)/javascript/opensrf_xmpp.js \
25          @top_srcdir@/Open-ILS/xul/staff_client/chrome//content//util/date.js
26 JSDOJO = $(OPENSRF_LIBS)/javascript/DojoSRF.js
27 JSDOJOSRF = $(OPENSRF_LIBS)/javascript/md5.js \
28              $(OPENSRF_LIBS)/javascript/JSON_v1.js \
29              $(OPENSRF_LIBS)/javascript/opensrf.js \
30              $(OPENSRF_LIBS)/javascript/opensrf_xhr.js \
31              $(OPENSRF_LIBS)/javascript/opensrf_xmpp.js
32 endif
33
34 install-exec-local: webcore-install offline-install
35
36 uninstall-hook:
37         rm -R $(opacextrasdir)
38         rm -R $(webdir)
39
40 webcore-install:
41         $(MKDIR_P) $(DESTDIR)$(WEBDIR)
42         $(MKDIR_P) $(DESTDIR)$(WEBDIR)/opac/extras/slimpac/
43         $(MKDIR_P) $(DESTDIR)$(WEBDIR)/standalone/
44         $(MKDIR_P) $(opacextrasdir)
45         $(MKDIR_P) $(DESTDIR)$(reportsdir)
46         $(MKDIR_P) $(DESTDIR)$(XSLDIR)
47         rm -f $(DESTDIR)$(reportsdir)/fm_IDL.xml
48         cp $(DESTDIR)@sysconfdir@/fm_IDL.xml $(DESTDIR)$(WEBDIR)/reports/
49         cp -r @top_srcdir@/Open-ILS/web/. $(DESTDIR)$(WEBDIR)
50         cp @top_srcdir@/Open-ILS/xsl/*.xsl $(opacextrasdir)
51         cp @top_srcdir@/Open-ILS/xsl/*.xsl $(DESTDIR)$(XSLDIR)
52         for i in mresult.xml rresult.xml rdetail.xml advanced.xml myopac.xml cnbrowse.xml authbrowse.xml; do \
53                 cd $(DESTDIR)$(WEBDIR)/opac/skin/default/xml/ && rm -f $$i && $(LN_S) index.xml $$i; \
54         done
55
56 offline-install:
57         @echo "Installing offline CGIs to $(CGIDIR)/offline";
58         $(MKDIR_P) $(TMP)
59         $(MKDIR_P) $(DESTDIR)$(CGIDIR)/offline;
60         $(MKDIR_P) $(DESTDIR)$(datadir)/offline;
61         perl -pe "s{##CONFIG##}{@sysconfdir@}" < @top_srcdir@/Open-ILS/src/offline/offline.pl > $(TMP)/offline.pl;
62         cp $(TMP)/offline.pl $(DESTDIR)$(CGIDIR)/offline/
63         chmod +x $(DESTDIR)$(CGIDIR)/offline/offline.pl
64
65 install-data-local:
66         $(MKDIR_P) $(DESTDIR)$(WEBDIR)/opac/common/js
67         for i in $(OPACJS); do \
68                 cd $(DESTDIR)$(WEBDIR)/opac/common/js && \
69                 rm -f `basename $$i` && $(LN_S) $$i . ; \
70         done
71         $(MKDIR_P) $(DESTDIR)$(WEBDIR)/js/dojo/opensrf
72         for i in $(JSDOJOSRF); do \
73                 cd $(DESTDIR)$(WEBDIR)/js/dojo/opensrf && \
74                 rm -f `basename $$i` && $(LN_S) $$i . ; \
75         done
76         for i in $(JSDOJO); do \
77                 cd $(DESTDIR)$(WEBDIR)/js/dojo && \
78                 rm -f `basename $$i` && $(LN_S) $$i . ; \
79         done