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 | 5a0b7b21600f93674943ebbbdfdc73a721c06186 (patch) | |
tree | e3dbeb352684ab124dded2d834a67cfaf58d2c5b /Makefile | |
parent | fda5ae2e55e009d395ab9eadbea1785f6cff9776 (diff) |
only copy plattform/model-specific files/ if existant
Diffstat (limited to 'Makefile')
-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)/ $@/ |