Skip to content
Permalink
Browse files

Makefile: fix checking for .pc/ folder

For some reason the Makefile-sequence "ifndef ($(wildcard path,)) is
not working, so let's use direct shell-commands.
  • Loading branch information...
SvenRoederer committed Jun 22, 2019
1 parent 96038a0 commit ee2b76f8892d6dfff8fe2d52673c992496e8c20e
Showing with 2 additions and 3 deletions.
  1. +2 −3 Makefile
@@ -266,9 +266,8 @@ unpatch-feeds: $(OPENWRT_DIR)/feeds.conf $(UNPATCH_FEEDS_TARGET)

unpatch-feed-%: $(OPENWRT_DIR)/feeds/%
$(info this is $@)
ifneq ($(wildcard $(OPENWRT_DIR)/feeds/$*/.pc),)
cd $(OPENWRT_DIR)/feeds/$*; quilt pop -a -f || [ $$? = 2 ] && true
endif
[ ! -d $(OPENWRT_DIR)/feeds/$*/.pc ] || \
(cd $(OPENWRT_DIR)/feeds/$*; quilt pop -a -f || [ $$? = 2 ] && true)
#rm -rf $(OPENWRT_DIR)/feeds/$*/.pc


0 comments on commit ee2b76f

Please sign in to comment.
You can’t perform that action at this time.