summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2008-11-08 18:27:57 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2008-11-08 18:27:57 (GMT)
commit214582d3567257da094d09d711316aa14618383b (patch)
treec68b1b942bd199ed9fbfbc59a7339d43b95d7c2a /Makefile
parent270b7e1883be0ca62876595c497fbb7d9f6e5b22 (diff)
downloadmxe-214582d3567257da094d09d711316aa14618383b.zip
mxe-214582d3567257da094d09d711316aa14618383b.tar.gz
mxe-214582d3567257da094d09d711316aa14618383b.tar.bz2
bugfix: use -d instead of -z to check for a directory
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6ee775e..3e71310 100644
--- a/Makefile
+++ b/Makefile
@@ -37,8 +37,8 @@ define PKG_RULE
.PHONY: $(1)
$(1): $(PREFIX)/installed.$(1)
$(PREFIX)/installed.$(1): $(addprefix $(PREFIX)/installed.,$($(1)_DEPS))
- [ -z '$(PREFIX)' ] || mkdir -p '$(PREFIX)'
- [ -z '$(PKG_DIR)' ] || mkdir -p '$(PKG_DIR)'
+ [ -d '$(PREFIX)' ] || mkdir -p '$(PREFIX)'
+ [ -d '$(PKG_DIR)' ] || mkdir -p '$(PKG_DIR)'
rm -rf '$(2)'
mkdir -p '$(2)'
cd '$(PKG_DIR)' && ( \