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)
7 all: mod_xmltools mod_ils_rest_gateway
10 install: perl-install web-install string-templates-install storage-bootstrap xsl-install
12 web-install: webcore-install autojs-install mod_xmltools-install mod_ils_rest_gateway-install
15 # -----------------------------------------------------------------------------------
17 # -----------------------------------------------------------------------------------
20 make -C apachemods mod_ils_rest_gateway.so
22 mod_ils_rest_gateway-install:
24 make -C apachemods mod_ils_rest_gateway-install
28 make -C apachemods mod_xmltools.so
32 make -C apachemods mod_xmltools-install
36 echo "Copying web into $(WEBDIR)"
38 cp -r ../web/* $(WEBDIR)
42 cp extras/fieldmapper.pl $(BINDIR)
43 cp extras/org_tree_js.pl $(BINDIR)
44 cp extras/autogen.sh $(BINDIR)
45 # -----------------------------------------------------------------------------------
49 make -C extras/marcdumper
53 make -C extras/marcdumper install
55 # -----------------------------------------------------------------------------------
59 @echo "Installing Perl modules to $(PERLDIR)"
61 cp -r perlmods/* $(PERLDIR)
62 cp ../examples/openils.xml.example $(ETCDIR)
63 mkdir -p $(TEMPLATEDIR)
64 cp -r templates/marc $(TEMPLATEDIR)
66 # -----------------------------------------------------------------------------------
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:
78 @echo "Installing string templates to $(TEMPLATEDIR)"
79 mkdir -p $(TEMPLATEDIR)
80 cp -r templates/strings $(TEMPLATEDIR)
83 @echo "Installing XSL files to $(XSLDIR)"
85 cp ../xsl/*.xsl $(XSLDIR)
90 make -C apachemods clean