date validation for patron edit/register
[Evergreen.git] / Evergreen / Makefile
1 # ------------------------------------------------------------------------
2 # Evergreen makefile
3 # ------------------------------------------------------------------------
4
5 IMAGE=$(WEBDIR)/images
6
7 # A kludge until we move the generic parts of the staff client to Open-ILS
8
9 all:    xul 
10
11
12 install:        images-install circ-install
13
14 xul:
15         cp -R staff_client local_staff_client
16         find local_staff_client/ -type f -exec sed -i s/evergreen/${NEW_XUL_PACKAGE_NAME}/g {} \;
17         find local_staff_client/ -type f -exec sed -i s/Evergreen/${NEW_XUL_PACKAGE_LABEL}/g {} \;
18         (cd local_staff_client/chrome/skin/evergreen; mv evergreen.css ${NEW_XUL_PACKAGE_NAME}.css)
19         (cd local_staff_client/defaults/preferences; mv evergreen.js ${NEW_XUL_PACKAGE_NAME}.js)
20         (cd local_staff_client/chrome/content; mv evergreen ${NEW_XUL_PACKAGE_NAME})
21         (cd local_staff_client/chrome/locale/en-US/; mv evergreen ${NEW_XUL_PACKAGE_NAME})
22         (cd local_staff_client/chrome/skin; mv evergreen ${NEW_XUL_PACKAGE_NAME})
23         make -C local_staff_client build
24         find local_staff_client/ -type f -exec sed -i s/gapines.org/${NEW_OPAC_URL}/g {} \;
25         make -C local_staff_client package
26
27 images-install:
28         @echo "Installing images to $(IMAGE)";
29         mkdir -p $(WEBDIR)
30         cp -r images $(WEBDIR)
31         ln -sf $(IMAGE)/pics/map.jpg $(IMAGE)/cartographic.jpg
32         ln -sf $(IMAGE)/bigpinesLogo.jpg $(IMAGE)/main_logo.jpg
33         ln -sf $(IMAGE)/pics/open_book.gif $(IMAGE)/"mixed material.jpg"
34         ln -sf $(IMAGE)/pics/movie.jpg $(IMAGE)/"moving image.jpg"
35         ln -sf $(IMAGE)/pics/music_icon.jpg $(IMAGE)/"notated music.jpg"
36         ln -sf $(IMAGE)smallpinesLogo.jpg $(IMAGE)/"small_logo.jpg"
37         ln -sf $(IMAGE)/pics/computer.jpg $(IMAGE)/"software, multimedia.jpg"
38         ln -sf $(IMAGE)/pics/speaker.gif $(IMAGE)/"sound recording-musical.jpg"
39         ln -sf $(IMAGE)/pics/speaker.gif $(IMAGE)/"sound recording-nonmusical.jpg"
40         ln -sf $(IMAGE)/pics/speaker.gif $(IMAGE)/"sound recording.jpg"
41         ln -sf $(IMAGE)/pics/camera.gif $(IMAGE)/"still images.jpg"
42         ln -sf $(IMAGE)/pics/open_book.gif $(IMAGE)/text.jpg
43         ln -sf $(IMAGE)/pics/book_icon.jpeg $(IMAGE)/"three dimensional object.jpg"
44
45 css-install:
46         mkdir -p $(WEBDIR)/css
47         cp -r css/opac/* $(WEBDIR)/css
48
49 circ-install:
50         mkdir -p $(CIRCRULESDIR)
51         cp circ_rules/*.rules $(CIRCRULESDIR)/
52
53 clean:
54         make -C local_staff_client clean