aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules/patch.mk2
1 files changed, 1 insertions, 1 deletions
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