1# $NetBSD: directive-else.mk,v 1.4 2020/10/24 08:46:08 rillig Exp $ 2# 3# Tests for the .else directive. 4 5# The .else directive does not take any arguments. 6# As of 2020-08-29, make doesn't warn about this. 7.if 0 8. warning must not be reached 9.else 123 10. info ok 11.endif 12 13.if 1 14. info ok 15.else 123 16. warning must not be reached 17.endif 18 19# An .else without a corresponding .if is an error. 20.else 21 22# Accidental extra .else directives are detected too. 23.if 0 24. warning must not be reached 25.else 26. info ok 27.else 28. info After an extra .else, everything is skipped. 29.endif 30 31all: 32 @:; 33