mirror of
https://github.com/opnsense/plugins.git
synced 2026-04-29 02:06:20 -05:00
make: shuffle this test to core
This commit is contained in:
2
Makefile
2
Makefile
@@ -44,7 +44,7 @@ list:
|
||||
.endfor
|
||||
|
||||
# shared targets that are sane to run from the root directory
|
||||
TARGETS= clean glint lint plist-fix revision style style-fix style-model style-python sweep test
|
||||
TARGETS= clean glint lint plist-fix revision style sweep test
|
||||
|
||||
.for TARGET in ${TARGETS}
|
||||
${TARGET}:
|
||||
|
||||
@@ -24,8 +24,3 @@
|
||||
# SUCH DAMAGE.
|
||||
|
||||
.-include "${PLUGINSDIR}/../core/Mk/lint.mk"
|
||||
|
||||
lint-desc: check
|
||||
@if [ ! -f ${.CURDIR}/${PLUGIN_DESC} ]; then \
|
||||
echo ">>> Missing ${PLUGIN_DESC}"; exit 1; \
|
||||
fi
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
# SUCH DAMAGE.
|
||||
|
||||
all: check
|
||||
@cat ${.CURDIR}/pkg-descr | ${PAGER}
|
||||
@cat ${.CURDIR}/${PLUGIN_DESC} | ${PAGER}
|
||||
|
||||
.include "defaults.mk"
|
||||
|
||||
@@ -32,8 +32,6 @@ PLUGINSDIR?= ${.CURDIR}/../..
|
||||
SCRIPTSDIR= ${PLUGINSDIR}/Scripts
|
||||
TEMPLATESDIR= ${PLUGINSDIR}/Templates
|
||||
|
||||
.include "lint.mk"
|
||||
|
||||
.if exists(${GIT}) && exists(${GITVERSION})
|
||||
PLUGIN_COMMIT!= ${GITVERSION}
|
||||
.else
|
||||
@@ -54,6 +52,8 @@ PLUGIN_REVISION?= 0
|
||||
PLUGIN_REQUIRES= PLUGIN_NAME PLUGIN_VERSION PLUGIN_COMMENT \
|
||||
PLUGIN_MAINTAINER
|
||||
|
||||
.include "lint.mk"
|
||||
|
||||
check:
|
||||
.for PLUGIN_REQUIRE in ${PLUGIN_REQUIRES}
|
||||
. if "${${PLUGIN_REQUIRE}}" == ""
|
||||
|
||||
@@ -150,9 +150,8 @@ The make targets for the root directory:
|
||||
* clean: remove all changes and unknown files
|
||||
* lint: run syntax checks
|
||||
* list: print a list of all plugin directories with comments
|
||||
* style-fix: apply style fixes
|
||||
* style: run style checks
|
||||
* sweep: apply whitespace fixes
|
||||
* sweep: apply style fixes
|
||||
|
||||
The make targets for any plugin directory:
|
||||
|
||||
@@ -163,6 +162,5 @@ The make targets for any plugin directory:
|
||||
* package: creates a package
|
||||
* upgrade: upgrades existing package
|
||||
* remove: remove known files from target directory
|
||||
* style-fix: apply style fixes
|
||||
* style: run style checks
|
||||
* sweep: apply whitespace fixes
|
||||
* sweep: apply style fixes
|
||||
|
||||
Reference in New Issue
Block a user