Respect DESTDIR when installing Apache module
authorDennis Schridde <dennis.schridde@uni-heidelberg.de>
Wed, 6 Apr 2016 14:32:31 +0000 (16:32 +0200)
committerSimo Sorce <simo@redhat.com>
Tue, 12 Apr 2016 22:14:31 +0000 (18:14 -0400)
Reviewed-by: Simo Sorce <simo@redhat.com>
Close #78

src/Makefile.am

index 7edd028..d43897b 100644 (file)
@@ -20,8 +20,8 @@ mod_auth_gssapi_la_LDFLAGS = \
     -export-symbols-regex auth_gssapi_module
 
 install-exec-local:
-       if test ! -d ${APXS_LIBEXECDIR}; then mkdir -p ${APXS_LIBEXECDIR}; fi
-       @APXS@ -i -S LIBEXECDIR=${APXS_LIBEXECDIR} mod_auth_gssapi.la
+       test -d $(DESTDIR)$(APXS_LIBEXECDIR) || mkdir -p $(DESTDIR)$(APXS_LIBEXECDIR)
+       @APXS@ -i -S LIBEXECDIR=$(DESTDIR)$(APXS_LIBEXECDIR) mod_auth_gssapi.la
 
 clean-local:
        rm -f mod_auth_gssapi.slo mod_auth_gssapi.la mod_auth_gssapi.lo .libs