summaryrefslogtreecommitdiff
path: root/build/rules.mk.in
diff options
context:
space:
mode:
Diffstat (limited to 'build/rules.mk.in')
-rw-r--r--build/rules.mk.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/build/rules.mk.in b/build/rules.mk.in
index 2bf16fe6..3dedb9a3 100644
--- a/build/rules.mk.in
+++ b/build/rules.mk.in
@@ -166,9 +166,15 @@ local-extraclean: local-distclean x-local-extraclean
fi
program-install: $(TARGETS) $(SHARED_TARGETS)
- @if test -n '$(PROGRAMS)'; then \
+ @if test -n '$(bin_PROGRAMS)'; then \
+ test -d $(DESTDIR)$(bindir) || $(MKINSTALLDIRS) $(DESTDIR)$(bindir); \
+ list='$(bin_PROGRAMS)'; for i in $$list; do \
+ $(INSTALL_PROGRAM) $$i $(DESTDIR)$(bindir); \
+ done; \
+ fi
+ @if test -n '$(sbin_PROGRAMS)'; then \
test -d $(DESTDIR)$(sbindir) || $(MKINSTALLDIRS) $(DESTDIR)$(sbindir); \
- list='$(PROGRAMS)'; for i in $$list; do \
+ list='$(sbin_PROGRAMS)'; for i in $$list; do \
$(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir); \
done; \
fi