SUBDIRS = src tests
jserver:
- make -s -C src jserver
+ $(MAKE) -s -C src jserver
jserver-install:
- make -s -C src jserver-install
+ $(MAKE) -s -C src jserver-install
distclean-local:
rm -rf ./autom4te.cache
SUBDIRS = $(MAYBE_CORE) $(MAYBE_PY) $(MAYBE_JA)
install-exec-local:
- $(MKDIR_P) $(VAR)
- $(MKDIR_P) $(PID)
- $(MKDIR_P) $(LOG)
- $(MKDIR_P) $(SOCK)
- $(MKDIR_P) $(jsdir)
+ $(MKDIR_P) $(DESTDIR)$(VAR)
+ $(MKDIR_P) $(DESTDIR)$(PID)
+ $(MKDIR_P) $(DESTDIR)$(LOG)
+ $(MKDIR_P) $(DESTDIR)$(SOCK)
+ $(MKDIR_P) $(DESTDIR)$(jsdir)
install-exec-hook:
if [ "$(MAYBE_CORE)" ]; then \
rm "$(DESTDIR)@sysconfdir@/$${f}.bak" ; \
done; \
fi
- cp -r @srcdir@/javascript/* $(jsdir)/
+ cp -r @srcdir@/javascript/* $(DESTDIR)$(jsdir)/
uninstall-hook:
rm -f @includedir@/opensrf/apachetools.h
AM_CFLAGS = -D_LARGEFILE64_SOURCE -Wall -I@abs_top_srcdir@/include/ -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) -I$(APR_HEADERS)
AM_LDFLAGS = -L$(LIBDIR) -L@top_builddir@/src/libopensrf
+AP_LIBEXECDIR = `$(APXS2) -q LIBEXECDIR`
DISTCLEANFILES = Makefile.in Makefile
fi
$(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) @srcdir@/osrf_json_gateway.c apachetools.c apachetools.h libopensrf.so
$(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) @srcdir@/osrf_http_translator.c apachetools.c apachetools.h libopensrf.so
- $(APXS2) -i -a @srcdir@/osrf_json_gateway.la
- $(APXS2) -i -a @srcdir@/osrf_http_translator.la
+ $(MKDIR_P) $(DESTDIR)$(AP_LIBEXECDIR)
+ $(APXS2) -i -S LIBEXECDIR=$(DESTDIR)$(AP_LIBEXECDIR) -a @srcdir@/osrf_json_gateway.la
+ $(APXS2) -i -S LIBEXECDIR=$(DESTDIR)$(AP_LIBEXECDIR) -a @srcdir@/osrf_http_translator.la
clean-local:
rm -f @srcdir@/osrf_http_translator.la @srcdir@/osrf_http_translator.lo @srcdir@/osrf_http_translator.slo @srcdir@/osrf_json_gateway.la @srcdir@/osrf_json_gateway.lo @srcdir@/osrf_json_gateway.slo
./Build install
build-perl:
- perl Build.PL || make -s build-perl-fail
+ perl Build.PL --destdir $(DESTDIR) || make -s build-perl-fail
build-perl-fail:
echo