added an example lib ips file. removed evergreen_core from the default config since...
[working/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
13 install:        circ-install iplist-install perl-install
14
15 xul:
16         @echo $@
17         cp -R staff_client local_staff_client
18         find local_staff_client/ -type f -exec sed -i s/evergreen/${NEW_XUL_PACKAGE_NAME}/g {} \;
19         find local_staff_client/ -type f -exec sed -i s/Evergreen/${NEW_XUL_PACKAGE_LABEL}/g {} \;
20         (cd local_staff_client/chrome/skin/evergreen; mv evergreen.css ${NEW_XUL_PACKAGE_NAME}.css)
21         (cd local_staff_client/defaults/preferences; mv evergreen.js ${NEW_XUL_PACKAGE_NAME}.js)
22         (cd local_staff_client/chrome/content; mv evergreen ${NEW_XUL_PACKAGE_NAME})
23         (cd local_staff_client/chrome/locale/en-US/; mv evergreen ${NEW_XUL_PACKAGE_NAME})
24         (cd local_staff_client/chrome/skin; mv evergreen ${NEW_XUL_PACKAGE_NAME})
25         make -C local_staff_client build
26         find local_staff_client/ -type f -exec sed -i s/gapines.org/${NEW_OPAC_URL}/g {} \;
27         make -C local_staff_client package
28
29 perl-install:
30         @echo $@
31         mkdir -p $(PERLDIR)
32         cp -r src/perlmods/* $(PERLDIR)
33
34 circ-install:
35         @echo $@
36         mkdir -p $(CIRCRULESDIR)
37         cp circ_rules/*.rules $(CIRCRULESDIR)/
38
39 iplist-install:
40         @echo $@
41         mkdir -p $(ETCDIR)
42         cp conf/lib_ips.txt $(ETCDIR)
43
44 clean:
45         if [ -d local_staff_client ]; then make -C local_staff_client clean; fi;
46