freebsd-src/unit-tests/directive-endif.mk
Simon J. Gerraty 1b65f0bd2b Import bmake-20201117
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
2020-11-20 03:54:37 +00:00

28 lines
423 B
Makefile

# $NetBSD: directive-endif.mk,v 1.3 2020/11/12 22:40:11 rillig Exp $
#
# Tests for the .endif directive.
#
# See also:
# Cond_EvalLine
# TODO: Implementation
.MAKEFLAGS: -dL
# Error: .endif does not take arguments
# XXX: Missing error message
.if 0
.endif 0
# Error: .endif does not take arguments
# XXX: Missing error message
.if 1
.endif 1
# Comments are allowed after an '.endif'.
.if 2
.endif # comment
all:
@:;