11.6Ssjg# $NetBSD: directive-hyphen-include.mk,v 1.6 2025/11/16 16:43:57 sjg Exp $ 21.1Srillig# 31.1Srillig# Tests for the .-include directive, which includes another file, 41.1Srillig# silently skipping it if it cannot be opened. 51.2Srillig# 61.2Srillig# The 'silently skipping' only applies to the case where the file cannot be 71.2Srillig# opened. Parse errors and other errors are handled the same way as in the 81.2Srillig# other .include directives. 91.2Srillig 101.2Srillig# No complaint that there is no such file. 111.2Srillig.-include "${.CURDIR}/directive-hyphen-include-nonexistent.inc" 121.2Srillig 131.2Srillig# No complaint either, even though the operating system error is ENOTDIR, not 141.2Srillig# ENOENT. 151.2Srillig.-include "${MAKEFILE}/subdir" 161.1Srillig 171.2Srillig# Errors that are not related to opening the file are still reported. 181.5Srillig# expect: make: directive-hyphen-include-error.inc:1: Invalid line "syntax error" 191.2Srillig_!= echo 'syntax error' > directive-hyphen-include-error.inc 201.6Ssjg.-include "${.OBJDIR}/directive-hyphen-include-error.inc" 211.2Srillig_!= rm directive-hyphen-include-error.inc 221.1Srillig 231.2Srilligall: .PHONY 24