-$(IPKG_OPENWRT):
- mkdir -p $(IDIR_OPENWRT)/etc
- cp files/network.overrides.$(BOARD) $(IDIR_OPENWRT)/etc/network.overrides
+$(IPKG_OPENWRT): $(IDIR_OPENWRT)
+ [ -d files/$(BOARD) ] && cp -a files/$(BOARD)/* $(IDIR_OPENWRT)/
+ find $(IDIR_OPENWRT) -name CVS | xargs rm -rf
+ find $(IDIR_OPENWRT) -name .svn | xargs rm -rf