Browse Source

Check for SLUG and VERSION when compiling plugin.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
720e1505a2
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      plugin.mk

+ 7
- 0
plugin.mk View File

@@ -5,6 +5,13 @@ endif
SLUG := $(shell jq .slug plugin.json) SLUG := $(shell jq .slug plugin.json)
VERSION := $(shell jq .version 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 DISTRIBUTABLES += plugin.json


FLAGS += -fPIC FLAGS += -fPIC


Loading…
Cancel
Save