diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2008-11-08 18:27:57 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2008-11-08 18:27:57 (GMT) |
commit | 214582d3567257da094d09d711316aa14618383b (patch) | |
tree | c68b1b942bd199ed9fbfbc59a7339d43b95d7c2a | |
parent | 270b7e1883be0ca62876595c497fbb7d9f6e5b22 (diff) | |
download | mxe-214582d3567257da094d09d711316aa14618383b.zip mxe-214582d3567257da094d09d711316aa14618383b.tar.gz mxe-214582d3567257da094d09d711316aa14618383b.tar.bz2 |
bugfix: use -d instead of -z to check for a directory
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)' && ( \ |