fix empty download dir error
authorFelix Fietkau <nbd@openwrt.org>
Mon, 29 Oct 2007 22:05:23 +0000 (22:05 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 29 Oct 2007 22:05:23 +0000 (22:05 +0000)
SVN-Revision: 9462

rules.mk

index 28d28b1..5c66dfd 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -32,7 +32,7 @@ SUBDIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR})
 
 OPTIMIZE_FOR_CPU:=$(ARCH)
 
-DL_DIR:=$(call qstrip,$(if $(CONFIG_DOWNLOAD_FOLDER), $(CONFIG_DOWNLOAD_FOLDER),$(TOPDIR)/dl))
+DL_DIR:=$(if $(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(TOPDIR)/dl)
 BIN_DIR:=$(TOPDIR)/bin
 INCLUDE_DIR:=$(TOPDIR)/include
 SCRIPT_DIR:=$(TOPDIR)/scripts