aboutsummaryrefslogtreecommitdiff
path: root/rules/patch.mk
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2012-11-01 19:50:30 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2012-11-01 19:50:30 +0400
commit98c22bd8861c5e7df48d84d4dc70df0de840de36 (patch)
tree1616e87fb89cfbf6a9564e2d89e29da7a4786b8c /rules/patch.mk
parentf719a0ca758c45a7344d1f7c736a8f1e3defd660 (diff)
downloadcibs-98c22bd8861c5e7df48d84d4dc70df0de840de36.tar.gz
Test if patch dir exists
Diffstat (limited to 'rules/patch.mk')
-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