xref: /freebsd/contrib/bmake/unit-tests/opt-raw.mk (revision 9f45a3c8c82ffead7044ae836d9257113c630d3b)
1*9f45a3c8SSimon J. Gerraty# $NetBSD: opt-raw.mk,v 1.3 2022/01/23 16:09:38 rillig Exp $
22c3632d1SSimon J. Gerraty#
3*9f45a3c8SSimon J. Gerraty# Tests for the -r command line option, which skips the system-defined default
4*9f45a3c8SSimon J. Gerraty# rules from <sys.mk>.
52c3632d1SSimon J. Gerraty
6*9f45a3c8SSimon J. Gerraty# To provide a clean testing environment without unintended side effects,
7*9f45a3c8SSimon J. Gerraty# these unit tests run make with the option '-r' by default.  This means there
8*9f45a3c8SSimon J. Gerraty# are no predefined suffixes and no predefined tools.
92c3632d1SSimon J. Gerraty
10*9f45a3c8SSimon J. Gerraty.if defined(CC)
11*9f45a3c8SSimon J. Gerraty.  error
12*9f45a3c8SSimon J. Gerraty.endif
13*9f45a3c8SSimon J. Gerraty
14*9f45a3c8SSimon J. Gerratyall: .PHONY
15