1 # Copyright (C) 2008 Equinox Software, Inc.
2 # Kevin Beswick <kevinbeswick00@gmail.com>
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
15 # Declare some directory variables
17 export OPENSRF = opensrf
18 export BINDIR = @bindir@
19 export LIBDIR = @libdir@
20 export OSRF_JAVA_DEPSDIR = @OSRF_JAVA_DEPSDIR@
23 DISTCLEANFILES = Makefile.in Makefile
25 AM_LDFLAGS = $(DEF_LDFLAGS)
26 AM_CFLAGS = $(DEF_CFLAGS)
37 MAYBE_JAVASCRIPT = javascript
38 jsdir = $(prefix)/lib/javascript
39 js_SCRIPTS = javascript/DojoSRF.js javascript/JSON_v0.js javascript/JSON_v1.js javascript/md5.js javascript/opensrf.js javascript/opensrf_xhr.js javascript/opensrf_xmpp.js
43 MAYBE_CORE = libopensrf c-apps router srfsh gateway perl
44 dist_bin_SCRIPTS = @top_srcdir@/bin/opensrf-perl.pl
45 bin_SCRIPTS = @top_srcdir@/bin/osrf_config @top_srcdir@/bin/osrf_ctl.sh
46 dist_sysconf_DATA = @top_srcdir@/examples/opensrf.xml.example @top_srcdir@/examples/opensrf_core.xml.example @top_srcdir@/examples/srfsh.xml.example
50 MAYBE_CHOPCHOP = jserver
53 SUBDIRS = $(MAYBE_CORE) $(MAYBE_PY) $(MAYBE_JA)
62 if [ "$(MAYBE_CORE)" ]; then sed -i 's|LOCALSTATEDIR|$(VAR)|g' '$(DESTDIR)@sysconfdir@/opensrf.xml.example' && \
63 sed -i 's|SYSCONFDIR|$(ETCDIR)|g' '$(DESTDIR)@sysconfdir@/opensrf.xml.example' && \
64 sed -i 's|LOCALSTATEDIR|$(VAR)|g' '$(DESTDIR)@sysconfdir@/opensrf_core.xml.example' && \
65 sed -i 's|SYSCONFDIR|$(ETCDIR)|g' '$(DESTDIR)@sysconfdir@/opensrf_core.xml.example' && \
66 sed -i 's|LOCALSTATEDIR|$(VAR)|g' '$(DESTDIR)@sysconfdir@/srfsh.xml.example' && \
67 sed -i 's|SYSCONFDIR|$(ETCDIR)|g' '$(DESTDIR)@sysconfdir@/srfsh.xml.example'; fi
70 rm -f @includedir@/opensrf/apachetools.h