webstaff: alphabetize status and location dropdowns in copy-editor
[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         cp @top_srcdir@/Open-ILS/xsl/*.xsl $(opacextrasdir)
53         cp @top_srcdir@/Open-ILS/xsl/*.xsl $(DESTDIR)$(XSLDIR)
54
55 offline-install:
56         @echo "Installing offline CGIs to $(CGIDIR)/offline";
57         $(MKDIR_P) $(TMP)
58         $(MKDIR_P) $(DESTDIR)$(CGIDIR)/offline;
59         $(MKDIR_P) $(DESTDIR)$(datadir)/offline;
60         perl -pe "s{##CONFIG##}{@sysconfdir@}" < @top_srcdir@/Open-ILS/src/offline/offline.pl > $(TMP)/offline.pl;
61         cp $(TMP)/offline.pl $(DESTDIR)$(CGIDIR)/offline/
62         chmod +x $(DESTDIR)$(CGIDIR)/offline/offline.pl
63
64 install-data-local:
65         $(MKDIR_P) $(DESTDIR)$(WEBDIR)/opac/common/js
66         for i in $(OPACJS); do \
67                 cd $(DESTDIR)$(WEBDIR)/opac/common/js && \
68                 rm -f `basename $$i` && $(LN_S) $$i . ; \
69         done
70         $(MKDIR_P) $(DESTDIR)$(WEBDIR)/js/dojo/opensrf
71         for i in $(JSDOJOSRF); do \
72                 cd $(DESTDIR)$(WEBDIR)/js/dojo/opensrf && \
73                 rm -f `basename $$i` && $(LN_S) $$i . ; \
74         done
75         for i in $(JSDOJO); do \
76                 cd $(DESTDIR)$(WEBDIR)/js/dojo && \
77                 rm -f `basename $$i` && $(LN_S) $$i . ; \
78         done