mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
make: allow diff argument
E.g.:
# make diff-dns/dyndns
(cherry picked from commit 3730d4a088)
This commit is contained in:
parent
65d7217654
commit
becb3d644d
1 changed files with 4 additions and 4 deletions
8
Makefile
8
Makefile
|
|
@ -53,10 +53,7 @@ ${TARGET}:
|
|||
. endfor
|
||||
.endfor
|
||||
|
||||
diff:
|
||||
@git diff --stat -p stable/${PLUGIN_ABI}
|
||||
|
||||
ARGS= mfc
|
||||
ARGS= diff mfc
|
||||
|
||||
# handle argument expansion for required targets
|
||||
.for TARGET in ${.TARGETS}
|
||||
|
|
@ -72,6 +69,9 @@ ${_TARGET}_ARG= ${${_TARGET}_ARGS:[0]}
|
|||
.endif
|
||||
.endfor
|
||||
|
||||
diff:
|
||||
@git diff --stat -p stable/${PLUGIN_ABI} ${.CURDIR}/${diff_ARGS:[1]}
|
||||
|
||||
mfc:
|
||||
@git checkout stable/${PLUGIN_ABI}
|
||||
.for MFC in ${mfc_ARGS}
|
||||
|
|
|
|||
Loading…
Reference in a new issue