From e7460d7301fe96047337172ae30b7535b772aca6 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 29 Jul 2025 09:56:17 +0200 Subject: [PATCH] make: align files to look like core --- Mk/lint.mk | 33 +++++++++++++++++++++++++++++++++ Mk/plugins.mk | 11 ++--------- 2 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 Mk/lint.mk diff --git a/Mk/lint.mk b/Mk/lint.mk new file mode 100644 index 000000000..38427e747 --- /dev/null +++ b/Mk/lint.mk @@ -0,0 +1,33 @@ +# Copyright (c) 2025 Franco Fichtner +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. + +COREREFDIR= ${PLUGINSDIR}/../core + +.-include "${COREREFDIR}/Mk/lint.mk" + +lint-desc: check + @if [ ! -f ${.CURDIR}/${PLUGIN_DESC} ]; then \ + echo ">>> Missing ${PLUGIN_DESC}"; exit 1; \ + fi diff --git a/Mk/plugins.mk b/Mk/plugins.mk index b1d3482eb..a0505d93d 100644 --- a/Mk/plugins.mk +++ b/Mk/plugins.mk @@ -31,6 +31,8 @@ PLUGINSDIR?= ${.CURDIR}/../.. SCRIPTSDIR= ${PLUGINSDIR}/Scripts TEMPLATESDIR= ${PLUGINSDIR}/Templates +.include "lint.mk" + .if exists(${GIT}) && exists(${GITVERSION}) PLUGIN_COMMIT!= ${GITVERSION} .else @@ -350,15 +352,6 @@ clean: check fi @rm -rf ${.CURDIR}/work -COREREFDIR= ${.CURDIR}/../../../core - -.-include "${COREREFDIR}/Mk/lint.mk" - -lint-desc: check - @if [ ! -f ${.CURDIR}/${PLUGIN_DESC} ]; then \ - echo ">>> Missing ${PLUGIN_DESC}"; exit 1; \ - fi - plist-fix: sweep: check