From e1ce22a52003a83a96c36d53cb3c58f9144c8f67 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 4 Jan 2024 08:20:23 +0100 Subject: [PATCH] Framework: allow phony `plist-fix' target for core compat --- Makefile | 4 ++-- Mk/plugins.mk | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 865656059a..d6aebe498c 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Copyright (c) 2015-2023 Franco Fichtner +# Copyright (c) 2015-2024 Franco Fichtner # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -44,7 +44,7 @@ list: .endfor # shared targets that are sane to run from the root directory -TARGETS= clean lint revision style style-fix style-python sweep test +TARGETS= clean lint plist-fix revision style style-fix style-python sweep test .for TARGET in ${TARGETS} ${TARGET}: diff --git a/Mk/plugins.mk b/Mk/plugins.mk index 3481c34de5..2b3b9cb7ce 100644 --- a/Mk/plugins.mk +++ b/Mk/plugins.mk @@ -1,4 +1,4 @@ -# Copyright (c) 2015-2023 Franco Fichtner +# Copyright (c) 2015-2024 Franco Fichtner # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -377,6 +377,8 @@ lint-php: check lint: lint-desc lint-shell lint-xml lint-model lint-exec lint-php +plist-fix: + sweep: check find ${.CURDIR}/src -type f -name "*.map" -print0 | \ xargs -0 -n1 rm @@ -439,4 +441,4 @@ test: check ${.CURDIR}/src/opnsense/mvc/tests; \ fi -.PHONY: check +.PHONY: check plist-fix