LP1642337: Reporter Boolean Filters
[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              $(OPENSRF_LIBS)/javascript/opensrf_ws.js \
33              $(OPENSRF_LIBS)/javascript/opensrf_ws_shared.js
34 endif
35
36 install-exec-local: webcore-install offline-install
37
38 uninstall-hook:
39         rm -R $(opacextrasdir)
40         rm -R $(webdir)
41
42 webcore-install:
43         $(MKDIR_P) $(DESTDIR)$(WEBDIR)
44         $(MKDIR_P) $(DESTDIR)$(WEBDIR)/opac/extras/slimpac/
45         $(MKDIR_P) $(DESTDIR)$(WEBDIR)/standalone/
46         $(MKDIR_P) $(opacextrasdir)
47         $(MKDIR_P) $(DESTDIR)$(reportsdir)
48         $(MKDIR_P) $(DESTDIR)$(XSLDIR)
49         rm -f $(DESTDIR)$(reportsdir)/fm_IDL.xml
50         cp $(DESTDIR)@sysconfdir@/fm_IDL.xml $(DESTDIR)$(WEBDIR)/reports/
51         cp -r @top_srcdir@/Open-ILS/web/. $(DESTDIR)$(WEBDIR)
52         rm -f $(DESTDIR)$(WEBDIR)/Makefile*
53         cp @top_srcdir@/Open-ILS/xsl/*.xsl $(opacextrasdir)
54         cp @top_srcdir@/Open-ILS/xsl/*.xsl $(DESTDIR)$(XSLDIR)
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