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