Eliminate the old JSON parser, implemented in osrf_json_parser.c and
[OpenSRF.git] / Makefile.am
index bf334d2..4e9abc1 100644 (file)
@@ -30,20 +30,30 @@ export PID                  = @localstatedir@/run/opensrf
 export SOCK                    = @localstatedir@/lock/opensrf
 export LOG                     = @localstatedir@/log/opensrf
 export srcdir                  = @srcdir@
+opensrfincludedir              = @includedir@/opensrf
+
+ACLOCAL_AMFLAGS = -I m4
 
 AM_CFLAGS = $(DEF_CFLAGS)
 
+DISTCLEANFILES = Makefile.in Makefile aclocal.m4 config.guess config.log config.sub config.status configure depcomp install-sh ltmain.sh missing
+
 DOC_FILES = @srcdir@/doc/Application-HOWTO.txt \
            @srcdir@/doc/dokuwiki-doc-stubber.pl \
            @srcdir@/doc/OpenSRF-Messaging-Protocol.html \
            @srcdir@/doc/Persist-API.html \
-           @srcdir@/doc/Roadmap.txt
+           @srcdir@/doc/Roadmap.txt \
+               @srcdir@/AUTHORS \
+               @srcdir@/ChangeLog \
+               @srcdir@/INSTALL \
+               @srcdir@/README
 
 EXAMPLES_FILES = @srcdir@/examples/fieldmapper2cdbi.xsl \
                 @srcdir@/examples/fieldmapper2javascript.xsl \
                 @srcdir@/examples/fieldmapper2perl.xsl \
                 @srcdir@/examples/gen-fieldmapper.xml \
                 @srcdir@/examples/math_bench.pl \
+                @srcdir@/examples/math_client.py \
                 @srcdir@/examples/multisession-test.pl \
                 @srcdir@/examples/register.pl \
                 @srcdir@/examples/srfsh_config.xsd \
@@ -70,42 +80,40 @@ libosrf_FILES = @srcdir@/src/libopensrf/basic_client.c \
                @srcdir@/src/libopensrf/osrfConfig.c
 
 
-EXTRA_DIST = $(DOC_FILES) $(EXAMPLES_FILES) $(libosrf_FILES) $(strn_compat_FILES) $(python_FILES) $(java_FILES) @srcdir@/autogen.sh @srcdir@/src/extras @srcdir@/DCO-1.1.txt @srcdir@/LICENSE.txt @srcdir@/src/perl @srcdir@/src/javascript
-
-opensrfincludedir = @includedir@/opensrf
+EXTRA_DIST = $(DOC_FILES) $(EXAMPLES_FILES) $(libosrf_FILES) $(strn_compat_FILES) $(python_FILES) $(java_FILES) @srcdir@/autogen.sh @srcdir@/src/extras @srcdir@/COPYING @srcdir@/DCO-1.1.txt @srcdir@/LICENSE.txt @srcdir@/src/perl @srcdir@/src/javascript
 
 OSRFINC=@srcdir@/include/opensrf
 
+if BUILDCORE
 opensrfinclude_HEADERS = $(OSRFINC)/log.h \
-                               $(OSRFINC)/md5.h \
-                               $(OSRFINC)/osrf_application.h \
-                               $(OSRFINC)/osrf_app_session.h \
-                               $(OSRFINC)/osrf_big_hash.h \
-                               $(OSRFINC)/osrf_big_list.h \
-                               $(OSRFINC)/osrf_cache.h \
-                               $(OSRFINC)/osrfConfig.h \
-                               $(OSRFINC)/osrf_hash.h \
-                               $(OSRFINC)/osrf_json.h \
-                               $(OSRFINC)/osrf_json_utils.h \
-                               $(OSRFINC)/osrf_json_xml.h \
-                               $(OSRFINC)/osrf_legacy_json.h \
-                               $(OSRFINC)/osrf_list.h \
-                               $(OSRFINC)/osrf_message.h \
-                               $(OSRFINC)/osrf_prefork.h \
-                               $(OSRFINC)/osrf_settings.h \
-                               $(OSRFINC)/osrf_stack.h \
-                               $(OSRFINC)/osrf_system.h \
-                               $(OSRFINC)/osrf_transgroup.h \
-                               $(OSRFINC)/sha.h \
-                               $(OSRFINC)/socket_bundle.h \
-                               $(OSRFINC)/string_array.h \
-                               $(OSRFINC)/transport_client.h \
-                               $(OSRFINC)/transport_message.h \
-                               $(OSRFINC)/transport_session.h \
-                               $(OSRFINC)/utils.h \
-                               $(OSRFINC)/xml_utils.h
-
-
+       $(OSRFINC)/md5.h \
+       $(OSRFINC)/osrf_application.h \
+       $(OSRFINC)/osrf_app_session.h \
+       $(OSRFINC)/osrf_big_hash.h \
+       $(OSRFINC)/osrf_big_list.h \
+       $(OSRFINC)/osrf_cache.h \
+       $(OSRFINC)/osrfConfig.h \
+       $(OSRFINC)/osrf_hash.h \
+       $(OSRFINC)/osrf_json.h \
+       $(OSRFINC)/osrf_json_xml.h \
+       $(OSRFINC)/osrf_legacy_json.h \
+       $(OSRFINC)/osrf_list.h \
+       $(OSRFINC)/osrf_message.h \
+       $(OSRFINC)/osrf_prefork.h \
+       $(OSRFINC)/osrf_settings.h \
+       $(OSRFINC)/osrf_stack.h \
+       $(OSRFINC)/osrf_system.h \
+       $(OSRFINC)/osrf_transgroup.h \
+       $(OSRFINC)/sha.h \
+       $(OSRFINC)/socket_bundle.h \
+       $(OSRFINC)/string_array.h \
+       $(OSRFINC)/transport_client.h \
+       $(OSRFINC)/transport_message.h \
+       $(OSRFINC)/transport_session.h \
+       $(OSRFINC)/utils.h \
+       $(OSRFINC)/xml_utils.h \
+       src/gateway/apachetools.h
+endif
 
 SUBDIRS = src
 
@@ -115,9 +123,6 @@ jserver:
 jserver-install:
        make -s -C src jserver-install
 
-javascript-install:
-       make -s -C src javascript-install
-
-install-data-hook:
-       cp @srcdir@/src/gateway/apachetools.h @includedir@/opensrf/apachetools.h
-
+distclean-local:
+       rm -rf ./autom4te.cache
+       rm -rf ./m4