all: xul
-install: images-install
+install: images-install circ-install
xul:
make -C staff_client
ln -sf $(IMAGE)/open_book.gif $(IMAGE)/text.jpg
ln -sf $(IMAGE)/book_icon.jpeg $(IMAGE)/"three dimensional object.jpg"
+circ-install:
+ mkdir -p $(CIRCRULESDIR)
+ cp circ_rules/*.rules $(CIRCRULESDIR)/
+
clean:
make -C staff_client clean
read X; if [ ! -z "$X" ]; then TMP="$X"; fi;
prompt "Install prefix [$PREFIX] ";
- read X;
- if [ ! -z "$X" ]; then
- PREFIX="$X";
- BINDIR="$PREFIX/bin/";
- LIBDIR="$PREFIX/lib/";
- PERLDIR="$LIBDIR/perl5/";
- INCLUDEDIR="$PREFIX/include/";
- WEBDIR="$PREFIX/web";
- CGIDIR="$PREFIX/cgi-bin";
- ETCDIR="$PREFIX/etc";
- TEMPLATEDIR="$PREFIX/templates";
- fi
+ read X; if [ ! -z "$X" ]; then PREFIX="$X"; fi
+
+ BINDIR="$PREFIX/bin/";
+ LIBDIR="$PREFIX/lib/";
+ PERLDIR="$LIBDIR/perl5/";
+ INCLUDEDIR="$PREFIX/include/";
+ WEBDIR="$PREFIX/web";
+ CGIDIR="$PREFIX/cgi-bin";
+ ETCDIR="$PREFIX/etc";
+ TEMPLATEDIR="$PREFIX/templates";
+ CIRCRULESDIR="$PREFIX/circ";
prompt "Executables directory [$BINDIR] "
read X; if [ ! -z "$X" ]; then BINDIR="$X"; fi;
prompt "Templates directory [$TEMPLATEDIR] "
read X; if [ ! -z "$X" ]; then TEMPLATEDIR="$X"; fi;
+ prompt "Custom circulation rules directory [$CIRCRULESDIR] "
+ read X; if [ ! -z "$X" ]; then CIRCRULESDIR="$X"; fi;
+
prompt "Apache2 apxs binary [$APXS2] "
read X; if [ ! -z "$X" ]; then APXS2="$X"; fi;
_write "WEBDIR=\"$WEBDIR\"";
_write "TEMPLATEDIR=\"$TEMPLATEDIR\"";
_write "ETCDIR=\"$ETCDIR\"";
+ _write "CIRCRULESDIR=\"$CIRCRULESDIR\"";
# print out the targets
STR="TARGETS=(";
prompt "";
prompt "";
prompt "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";
+ prompt "!! If installing openils_all / openils_db !!";
prompt "!! Before running 'make install' you MUST !!";
prompt "!! create a database for Open-ILS. Use !!";
prompt "!! the settings that you listed above and !!";
# If you only want to build the client app, then just build evergreen_xul_client.
# --------------------------------------------------------------------
-TARGETS=("opensrf_all" "openils_all" "evergreen_all");
+TARGETS=("opensrf_all" "openils_all" "evergreen_core");
# --------------------------------------------------------------------
# building the mod_ils_gateway C plugin for allowing web access
# to the published API.
# --------------------------------------------------------------------
-APXS2="/pines/apps/apache2/bin/apxs";
+
+APXS2=$(which apxs);
+if [ -z "$APXS2" ]; then APXS2="/opt/bin/apxs"; fi
# --------------------------------------------------------------------
# be set when building the mod_ils_gateway C plugin for allowing web
# access to the published API.
# --------------------------------------------------------------------
-APACHE2_HEADERS="/pines/apps/apache2/include/";
+APACHE2_HEADERS="/opt/include/";
# --------------------------------------------------------------------
APACHE2_HEADERS=$APACHE2_HEADERS LIBXML2_HEADERS=$LIBXML2_HEADERS \
BINDIR=$BINDIR LIBDIR=$LIBDIR PERLDIR=$PERLDIR INCLUDEDIR=$INCLUDEDIR \
WEBDIR=$WEBDIR TEMPLATEDIR=$TEMPLATEDIR ETCDIR=$ETCDIR \
- OPENSRFDIR=$OPENSRFDIR OPENILSDIR=$OPENILSDIR EVERGREENDIR=$EVERGREENDIR\
+ OPENSRFDIR=$OPENSRFDIR OPENILSDIR=$OPENILSDIR EVERGREENDIR=$EVERGREENDIR CIRCRULESDIR=$CIRCRULESDIR\
CGIDIR=$CGIDIR DBDRVR=$DBDRVR DBHOST=$DBHOST DBNAME=$DBNAME DBUSER=$DBUSER DBPW=$DBPW";
"evergreen_core" )
if installing; then $MAKE -C "$EVERGREENDIR" "images-install"; fi;
+ if installing; then $MAKE -C "$EVERGREENDIR" "circ-install"; fi;
;;
"evergreen_xul_client" )