summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/rules.mk.in4
-rw-r--r--build/special.mk4
2 files changed, 4 insertions, 4 deletions
diff --git a/build/rules.mk.in b/build/rules.mk.in
index f0fc3b9bb9..8c30ebe8ce 100644
--- a/build/rules.mk.in
+++ b/build/rules.mk.in
@@ -197,9 +197,9 @@ local-extraclean: local-distclean x-local-extraclean
local-install: $(TARGETS) $(SHARED_TARGETS) $(INSTALL_TARGETS)
@if test -n '$(PROGRAMS)'; then \
- test -d $(sbindir) || $(MKINSTALLDIRS) $(sbindir); \
+ test -d $(DESTDIR)$(sbindir) || $(MKINSTALLDIRS) $(DESTDIR)$(sbindir); \
list='$(PROGRAMS)'; for i in $$list; do \
- $(INSTALL_PROGRAM) $$i $(sbindir); \
+ $(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir); \
done; \
fi
diff --git a/build/special.mk b/build/special.mk
index 089bd5d103..56db865368 100644
--- a/build/special.mk
+++ b/build/special.mk
@@ -62,13 +62,13 @@ SHARED_TARGETS = $(shared)
INSTALL_TARGETS = install-modules
install-modules:
- @test -d $(libexecdir) || $(MKINSTALLDIRS) $(libexecdir);
+ @test -d $(DESTDIR)$(libexecdir) || $(MKINSTALLDIRS) $(DESTDIR)$(libexecdir);
@builtin='$(BUILTIN_LIBS)'; \
has_mod_so=`echo $$builtin|sed 's/^.*mod_so.*$$/has_mod_so/'`; \
if [ "x$$has_mod_so" = "xhas_mod_so" ]; then \
list='$(shared)'; \
for i in $$list; do \
- $(top_srcdir)/build/instdso.sh SH_LIBTOOL='$(SH_LIBTOOL)' $$i $(libexecdir); \
+ $(top_srcdir)/build/instdso.sh SH_LIBTOOL='$(SH_LIBTOOL)' $$i $(DESTDIR)$(libexecdir); \
done; \
fi