DISTCLEANFILES = Makefile.in Makefile
install-exec-local:
- if [ ! "$$(grep mod_placeholder `$(APXS2) -q SYSCONFDIR`/httpd.conf)" ]; \
+ d=`$(APXS2) -q SYSCONFDIR` && \
+ if ! grep mod_placeholder $${d}/httpd.conf 2>&1 >/dev/null ; \
then echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \
- >> `$(APXS2) -q SYSCONFDIR`/httpd.conf; \
+ >> $${d}/httpd.conf; \
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