make: MFCDIR changes

Provide the work directory variables for standalone use.
This commit is contained in:
Franco Fichtner 2025-07-30 09:54:30 +02:00
parent 752d5a940f
commit 47f0d10114
3 changed files with 8 additions and 11 deletions

View file

@ -23,4 +23,9 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
WRKDIR?=${.CURDIR}/work
WRKSRC?=${WRKDIR}/src
PKGDIR?=${WRKDIR}/pkg
MFCDIR?=/tmp/mfc.dir
.-include "${PLUGINSDIR}/../core/Mk/common.mk"

View file

@ -305,13 +305,6 @@ remove: check
fi; \
done
WRKDIR?=${.CURDIR}/work
WRKSRC?=${WRKDIR}/src
PKGDIR?=${WRKDIR}/pkg
ensure-workdirs:
@mkdir -p ${WRKSRC} ${PKGDIR}
package: check
@rm -rf ${WRKSRC}
@mkdir -p ${WRKSRC} ${PKGDIR}
@ -367,8 +360,9 @@ test: check
${.CURDIR}/src/opnsense/mvc/tests; \
fi
commit: ensure-workdirs
commit:
@mkdir -p ${MFCDIR}
@/bin/echo -n "${.CURDIR:C/\// /g:[-2]}/${.CURDIR:C/\// /g:[-1]}: " > \
${WRKDIR}/.commitmsg && git commit -eF ${WRKDIR}/.commitmsg .
${MFCDIR}/.commitmsg && git commit -eF ${MFCDIR}/.commitmsg .
.PHONY: check

View file

@ -26,5 +26,3 @@
CORE_PYTHON_DOT=${PLUGIN_PYTHON:C/./&./1}
.-include "${PLUGINSDIR}/../core/Mk/style.mk"
style-php: ensure-workdirs