summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-11-07 20:18:28 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-11-07 20:18:28 +0000
commit5d10f6c90c967be04c590c2248e48dd4355f261b (patch)
tree932788e5ca117d3504cba6a71e49d7e6463cefe3
parent6325dce5e469e8520756af25e189af7ca3d5a8f8 (diff)
Don't try to generate bindir and mandir if there are no binaries to
install (this causes an invalid install command). git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3220 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ac3855b..b81d954 100644
--- a/Makefile
+++ b/Makefile
@@ -447,10 +447,12 @@ install: all devices install-modules install-programs install-firmware
install-programs: install-utils install-libs install-include
install-utils: utils install-xpp
+ifneq (,$(BINS))
install -d $(DESTDIR)$(BIN_DIR)
install $(BINS) $(DESTDIR)$(BIN_DIR)/
install -d $(DESTDIR)$(MAN_DIR)
install -m 644 $(MAN_PAGES) $(DESTDIR)$(MAN_DIR)/
+endif
ifeq (,$(wildcard $(DESTDIR)$(CONFIG_FILE)))
$(INSTALL) -D -m 644 zaptel.conf.sample $(DESTDIR)$(CONFIG_FILE)
endif