]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
dma: Fix rebuild if directory already exists
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Aug 2015 08:52:43 +0000 (09:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Aug 2015 08:52:43 +0000 (09:52 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/dma

diff --git a/lfs/dma b/lfs/dma
index bca3f08946e9ccb8052ae5e1dd2a6ed27c6f89d0..4e6150e8a02696b6cc8d7ac5ea82a2cfacd53755 100644 (file)
--- a/lfs/dma
+++ b/lfs/dma
@@ -73,7 +73,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
-       mkdir /var/ipfire/dma
+       mkdir -pv /var/ipfire/dma
        cd $(DIR_APP) && sed -i '/PREFIX/s/usr\/local/usr/g' Makefile
        cd $(DIR_APP) && sed -i '/CONFDIR/s/etc\/dma/var\/ipfire\/dma/g' Makefile
        cd $(DIR_APP) && make