summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 0d9684c..374d83a 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,9 @@ $(PKGS)/$(PKG)/PKGMETA: prepare
@echo 'Created pkg/$(PKG)/PKGMETA.'
prepare:
-.ifndef PKG
- @echo 'error: Specify the package name in the PKG variable.' 1>&2
- @false
-.endif
+ @case '$(PKG)' in \
+ '') echo 'error: Specify the package name in the PKG variable.' 1>&2 ;\
+ false ;; \
+ esac
+ @[ -d var ] || mkdir var
+