mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
make: MFCDIR changes
Provide the work directory variables for standalone use.
This commit is contained in:
parent
752d5a940f
commit
47f0d10114
3 changed files with 8 additions and 11 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -26,5 +26,3 @@
|
|||
CORE_PYTHON_DOT=${PLUGIN_PYTHON:C/./&./1}
|
||||
|
||||
.-include "${PLUGINSDIR}/../core/Mk/style.mk"
|
||||
|
||||
style-php: ensure-workdirs
|
||||
|
|
|
|||
Loading…
Reference in a new issue