summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2011-09-22 17:40:04 +0200
committerJustin Davis <jrcd83@gmail.com>2011-09-22 17:40:04 +0200
commit50f309ffc93a92e99e479a486f5e66c1e2d77238 (patch)
treed81b0cdbc65a7cfff1556c5e76ec2f3144c6b84b
parent2ecc615e167b4a7b00d42aaf6f8f2f275743ffb6 (diff)
downloadgenpkg-50f309ffc93a92e99e479a486f5e66c1e2d77238.tar.gz
genpkg-50f309ffc93a92e99e479a486f5e66c1e2d77238.tar.xz
Fix Makefile to run in GNU make.
-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
+