diff options
author | Katze Miau <miaukatzemiau@priveasy.de> | 2011-11-02 10:32:02 (GMT) |
---|---|---|
committer | Katze Miau <miaukatzemiau@priveasy.de> | 2011-11-02 10:32:02 (GMT) |
commit | a521559027d5e0c665b34808369046e275a6a8f3 (patch) | |
tree | e3dbeb352684ab124dded2d834a67cfaf58d2c5b | |
parent | c51fba27e256fa1868fffa580ffd6fb3a784e167 (diff) |
only copy plattform/model-specific files/ if existant
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)/ $@/ |