summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorfile <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-02-10 20:43:18 +0000
committerfile <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-02-10 20:43:18 +0000
commitf73cf51456c1e75ff920d5fef67fa5206836f37d (patch)
treec93afd80c37f622983a7662d81b6dfdb788ed6cd /firmware
parentdb099abc104520a2bba6aaea031ea0f2da2e12dc (diff)
Only attempt to install firmware to the hotplug directories if any was selected.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2147 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'firmware')
-rw-r--r--firmware/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
index f0b318b..9d4efaf 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -78,12 +78,14 @@ object-build: $(FIRMWARE) $(OBJECT_FILES)
# Install all downloaded firmware images for hotplug usage and build headers for inclusion
hotplug-install: $(FIRMWARE)
+ifneq (,$(FIRMWARE))
if [ -d $(INSTALL_PREFIX)/usr/lib/hotplug/firmware ]; then \
$(INSTALL) -m 644 zaptel-fw-*.bin $(INSTALL_PREFIX)/usr/lib/hotplug/firmware; \
fi
if [ -d $(INSTALL_PREFIX)/lib/firmware ]; then \
$(INSTALL) -m 644 zaptel-fw-*.bin $(INSTALL_PREFIX)/lib/firmware; \
fi
+endif
# Uninstall any installed zaptel firmware images from hotplug firmware directories
hotplug-uninstall: