mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
![Simon J. Gerraty](/assets/img/avatar_default.png)
Features of interest: Allow setting target local variables (similar to gmake) In META_MODE .MAKE.META.CMP_FILTER can be used for filtering commands before comparion. contrib/bmake/mk/cc-wrap.mk is an example of using these See ChangeLog for the gory details.
24 lines
544 B
Makefile
24 lines
544 B
Makefile
# $NetBSD: posix.mk,v 1.3 2022/01/23 18:15:29 rillig Exp $
|
|
|
|
all: x plus subs err
|
|
|
|
x:
|
|
@echo "Posix says we should execute the command as if run by system(3)"
|
|
@echo "Expect 'Hello,' and 'World!'"
|
|
@echo Hello,; false; echo "World!"
|
|
|
|
plus:
|
|
@echo a command
|
|
+@echo "a command prefixed by '+' executes even with -n"
|
|
@echo another command
|
|
|
|
subs:
|
|
@echo make -n
|
|
@${.MAKE} -r -f ${MAKEFILE} -n plus
|
|
@echo make -n -j1
|
|
@${.MAKE} -r -f ${MAKEFILE} -n -j1 plus
|
|
|
|
err:
|
|
@(echo Now we expect an error...; exit 1)
|
|
@echo "Oops! you shouldn't see this!"
|