adding first round of stage one display template
[working/Evergreen.git] / Open-ILS / src / Makefile
1
2 export TMPDIR                   = $(TMP)/opensrf
3 export LDFLAGS                  = -L $(TMPDIR) -L .
4 export CFLAGS                   = -g -Wall -O2 -fPIC -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) \
5                                                                 -I$(LIBXML2_HEADERS)/libxml  -I$(TMP) -I$(TMPDIR)
6
7 export INCDIR = "$(INCLUDEDIR)/openils/"
8
9 all: msg mod_xmltools mod_ils_rest_gateway c_apps
10
11
12
13 install:        perl-install web-install string-templates-install storage-bootstrap cgi-bootstrap xsl-install c_apps-install
14
15 web-install:    webcore-install autojs-install  mod_xmltools-install mod_ils_rest_gateway-install
16
17
18 # -----------------------------------------------------------------------------------
19 # Web stuff
20 # -----------------------------------------------------------------------------------
21 mod_ils_rest_gateway:
22         @echo $@
23         make -C apachemods mod_ils_rest_gateway.so
24
25 mod_ils_rest_gateway-install:
26         @echo $@
27         make -C apachemods libfieldmapper-install
28         make -C apachemods mod_ils_rest_gateway-install
29
30 mod_xmltools:
31         @echo $@
32         make -C apachemods mod_xmltools.so
33
34 mod_xmltools-install:
35         @echo $@
36         make -C apachemods mod_xmltools-install
37
38 webcore-install:
39         @echo $@
40         echo "Copying web into $(WEBDIR)"
41         # XXX put these back
42         #mkdir -p $(WEBDIR)
43         #cp -r ../web/* $(WEBDIR)
44
45 c_apps: mod_ils_rest_gateway
46         @echo $@
47         make -C c-apps
48
49 c_apps-install:
50         @echo $@
51         make -C c-apps install
52
53 autojs-install:
54         @echo $@
55         cp extras/fieldmapper.pl $(BINDIR)
56         cp extras/org_tree_js.pl $(BINDIR)
57         cp extras/autogen.sh $(BINDIR)
58 # -----------------------------------------------------------------------------------
59
60 marcdumper:
61         @echo $@
62         make -C extras/marcdumper
63
64 marcdumper-install:
65         @echo $@
66         make -C extras/marcdumper install
67
68 # -----------------------------------------------------------------------------------
69
70 perl-install:
71         @echo $@
72         @echo "Installing Perl modules to $(PERLDIR)"
73         mkdir -p $(PERLDIR)
74         cp -r perlmods/* $(PERLDIR)
75         cp ../examples/openils.xml.example $(ETCDIR)
76         mkdir -p $(TEMPLATEDIR)
77         cp -r templates/marc $(TEMPLATEDIR)
78
79 # -----------------------------------------------------------------------------------
80
81 cgi-bootstrap:
82         @echo "Installing cgi's to $(CGIDIR)"
83         mkdir -p $(TMP)/cgi-bin
84         mkdir -p $(CGIDIR)
85         for i in cgi-bin/*cgi; do perl -pe "s{##CONFIG##}{$(ETCDIR)}" < $$i > $(TMP)/$$i; done
86         cp $(TMP)/cgi-bin/*cgi $(CGIDIR)
87         cp -r cgi-bin/support $(CGIDIR)
88         cp cgi-bin/setup.pl $(ETCDIR)/live-db-setup.pl
89
90 storage-bootstrap:
91         ./extras/import/build-oils-db.sh $(DBDRVR) $(DBHOST) $(DBNAME) $(DBUSER) $(DBPW)
92
93 # -----------------------------------------------------------------------------------
94
95
96 string-templates-install:
97         @echo "Installing string templates to $(TEMPLATEDIR)"
98         mkdir -p $(TEMPLATEDIR)
99         cp -r templates/strings $(TEMPLATEDIR)
100
101 xsl-install:    
102         @echo "Installing XSL files to $(XSLDIR)"
103         mkdir -p $(XSLDIR)
104         cp ../xsl/*.xsl $(XSLDIR)
105
106 clean:
107         @echo $@
108         make -C extras clean
109         make -C apachemods clean
110