From 720e1505a28c7229d19225238005e5b5ca00c002 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 13 Feb 2019 18:10:03 -0500 Subject: [PATCH] Check for SLUG and VERSION when compiling plugin. --- plugin.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin.mk b/plugin.mk index d8000e0b..6d58c5e5 100644 --- a/plugin.mk +++ b/plugin.mk @@ -5,6 +5,13 @@ endif SLUG := $(shell jq .slug plugin.json) VERSION := $(shell jq .version plugin.json) +ifndef SLUG +$(error SLUG could not be found in manifest) +endif +ifndef VERSION +$(error VERSION could not be found in manifest) +endif + DISTRIBUTABLES += plugin.json FLAGS += -fPIC