From a521559027d5e0c665b34808369046e275a6a8f3 Mon Sep 17 00:00:00 2001 From: Katze Miau Date: Wed, 2 Nov 2011 10:32:02 +0000 Subject: only copy plattform/model-specific files/ if existant 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)/ $@/ -- cgit v0.10.1