mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
1b65f0bd2b
o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable checks in InitObjdir. Explicit .OBJDIR target always allows read-only directory. o Fix building and unit-tests on non-BSD. o More code cleanup and refactoring. o More unit tests
15 lines
499 B
Makefile
15 lines
499 B
Makefile
# $NetBSD: deptgt-silent.mk,v 1.4 2020/11/15 20:49:20 rillig Exp $
|
|
#
|
|
# Tests for the special target .SILENT in dependency declarations.
|
|
|
|
.SILENT: all
|
|
|
|
all: loud
|
|
@echo 'This is not echoed because of the @.'
|
|
# Without the .SILENT, the following command would be echoed.
|
|
echo 'This is not echoed because of the .SILENT.'
|
|
|
|
# Demonstrate that the .SILENT only applies to the particular target.
|
|
# This is unlike .DELETE_ON_ERROR, which is a global setting.
|
|
loud: .PHONY
|
|
echo 'This is a loud command.'
|