summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatze Miau <miaukatzemiau@priveasy.de>2011-11-02 10:32:02 (GMT)
committerKatze Miau <miaukatzemiau@priveasy.de>2011-11-02 10:32:02 (GMT)
commita521559027d5e0c665b34808369046e275a6a8f3 (patch)
treee3dbeb352684ab124dded2d834a67cfaf58d2c5b
parentc51fba27e256fa1868fffa580ffd6fb3a784e167 (diff)
only copy plattform/model-specific files/ if existant
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0394d80..8f31506 100644
--- a/Makefile
+++ b/Makefile
@@ -42,8 +42,8 @@ image/%: config/$$(REPO)-$$(PLATFORM)-$$(MODEL).config \
cp $< openwrt/$(REPO)/.config
-rm -r openwrt/$(REPO)/files openwrt/$(REPO)/bin/$(PLATFORM)
cp -a files/common openwrt/$(REPO)/files
- rsync -a files/$(PLATFORM)/ openwrt/$(REPO)/files/
- rsync -a files/$(PLATFORM)-$(MODEL)/ openwrt/$(REPO)/files/
+ [ -d files/$(PLATFORM) ] && rsync -a files/$(PLATFORM)/ openwrt/$(REPO)/files/
+ [ -d files/$(PLATFORM)-$(MODEL) ] && rsync -a files/$(PLATFORM)-$(MODEL)/ openwrt/$(REPO)/files/
cd openwrt/$(REPO) && $(MAKE)
mkdir -p $@
rsync -a openwrt/$(REPO)/bin/$(PLATFORM)/ $@/
contact: Jan Huwald // Impressum