From 98c22bd8861c5e7df48d84d4dc70df0de840de36 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Thu, 1 Nov 2012 19:50:30 +0400 Subject: Test if patch dir exists --- rules/patch.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/patch.mk b/rules/patch.mk index 40d9174..947b982 100644 --- a/rules/patch.mk +++ b/rules/patch.mk @@ -25,7 +25,7 @@ ifeq (,$(__patch_mk)) patchdir = $(CURDIR)/patches -patches = $(shell cd "$(patchdir)" && ls -1 | sort) +patches = $(shell [ -d "$(patchdir)" ] && cd "$(patchdir)" && ls -1 | sort) # Try different path levels: applied-%-stamp: $(patchdir)/% unpack-stamp check-build-dep-stamp -- cgit v1.2.3