thinko
[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
14
15 xul:
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 circ-install:
29         mkdir -p $(CIRCRULESDIR)
30         cp circ_rules/*.rules $(CIRCRULESDIR)/
31
32 clean:
33         if [ -d local_staff_client ]; then make -C local_staff_client clean; fi;
34