1 export TMPDIR = $(TMP)/opensrf
2 export LD_OPTS = -L $(TMPDIR) -L .
3 export CC_OPTS = -g -Wall -O2 -fPIC -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) \
4 -I$(LIBXML2_HEADERS)/libxml -I$(TMP) -I$(TMPDIR)
6 all: mod_xmltools mod_ils_rest_gateway
9 install: perl-install web-install string-templates-install storage-bootstrap xsl-install
11 web-install: webcore-install autojs-install mod_xmltools-install mod_ils_rest_gateway-install
14 # -----------------------------------------------------------------------------------
16 # -----------------------------------------------------------------------------------
19 make -C apachemods mod_ils_rest_gateway.so
21 mod_ils_rest_gateway-install:
23 make -C apachemods mod_ils_rest_gateway-install
27 make -C apachemods mod_xmltools.so
31 make -C apachemods mod_xmltools-install
35 echo "Copying web into $(WEBDIR)"
37 cp -r ../web/* $(WEBDIR)
41 cp extras/fieldmapper.pl $(BINDIR)
42 cp extras/org_tree_js.pl $(BINDIR)
43 cp extras/autogen.sh $(BINDIR)
44 # -----------------------------------------------------------------------------------
48 make -C extras/marcdumper
52 make -C extras/marcdumper install
54 # -----------------------------------------------------------------------------------
58 @echo "Installing Perl modules to $(PERLDIR)"
60 cp -r perlmods/* $(PERLDIR)
61 cp ../examples/openils.xml.example $(ETCDIR)
62 mkdir -p $(TEMPLATEDIR)
63 cp -r templates/marc $(TEMPLATEDIR)
65 # -----------------------------------------------------------------------------------
69 @echo "Installing cgi's to $(CGIDIR)"
71 cp -r cgi-bin/* $(CGIDIR)
72 ./extras/import/build-oils-db.sh $(DBDRVR) $(DBHOST) $(DBNAME) $(DBUSER) $(DBPW)
74 # -----------------------------------------------------------------------------------
77 string-templates-install:
79 @echo "Installing string templates to $(TEMPLATEDIR)"
80 mkdir -p $(TEMPLATEDIR)
81 cp -r templates/strings $(TEMPLATEDIR)
85 @echo "Installing XSL files to $(XSLDIR)"
87 cp ../xsl/*.xsl $(XSLDIR)
92 make -C apachemods clean