make: diff argument support

This commit is contained in:
Franco Fichtner 2018-09-21 08:29:00 +02:00
parent 4a042858a6
commit fb1e2f5c66

View File

@ -339,10 +339,7 @@ dhparam:
${.CURDIR}/src/etc/dh-parameters.${BITS}.sample ${BITS}
.endfor
diff:
@git diff --stat -p stable/${CORE_ABI}
ARGS= mfc
ARGS= diff mfc
# handle argument expansion for required targets
.for TARGET in ${.TARGETS}
@ -358,6 +355,9 @@ ${_TARGET}_ARG= ${${_TARGET}_ARGS:[0]}
.endif
.endfor
diff:
@git diff --stat -p stable/${CORE_ABI} ${.CURDIR}/${diff_ARGS:[1]}
mfc:
@git checkout stable/${CORE_ABI}
.for MFC in ${mfc_ARGS}