Also deprecated
[Evergreen.git] / Evergreen / Makefile
1 # ------------------------------------------------------------------------
2 # Evergreen makefile
3 # ------------------------------------------------------------------------
4
5 NEW_OPAC_URL=myopac.domain
6 NEW_XUL_PACKAGE_NAME=openils
7 NEW_XUL_PACKAGE_LABEL=OpenILS
8
9 # A kludge until we move the generic parts of the staff client to Open-ILS
10
11 all:    xul 
12 install:        circ-install iplist-install perl-install web-install
13
14 xul:
15         @echo $@
16         cp -R staff_client local_staff_client
17         find local_staff_client/ -type f -exec sed -i s/evergreen/${NEW_XUL_PACKAGE_NAME}/g {} \;
18         find local_staff_client/ -type f -exec sed -i s/Evergreen/${NEW_XUL_PACKAGE_LABEL}/g {} \;
19         (cd local_staff_client/chrome/skin/evergreen; mv evergreen.css ${NEW_XUL_PACKAGE_NAME}.css)
20         (cd local_staff_client/defaults/preferences; mv evergreen.js ${NEW_XUL_PACKAGE_NAME}.js)
21         (cd local_staff_client/chrome/content; mv evergreen ${NEW_XUL_PACKAGE_NAME})
22         (cd local_staff_client/chrome/locale/en-US/; mv evergreen ${NEW_XUL_PACKAGE_NAME})
23         (cd local_staff_client/chrome/skin; mv evergreen ${NEW_XUL_PACKAGE_NAME})
24         make -C local_staff_client build
25         find local_staff_client/ -type f -exec sed -i s/gapines.org/${NEW_OPAC_URL}/g {} \;
26         make -C local_staff_client package
27
28 perl-install:
29         @echo $@
30         mkdir -p $(PERLDIR)
31         cp -r src/perlmods/* $(PERLDIR)
32
33 circ-install:
34         @echo $@
35         mkdir -p $(CIRCRULESDIR)
36         cp src/javascript/backend/circ/*.js $(CIRCRULESDIR)
37
38 iplist-install:
39         @echo $@
40         mkdir -p $(ETCDIR)
41         cp conf/lib_ips.txt $(ETCDIR)
42
43 web-install:
44         @echo $@
45         cp web/opac/images/* $(WEBDIR)/opac/images/
46
47 clean:
48         if [ -d local_staff_client ]; then make -C local_staff_client clean; fi;
49