1*1d3f2ddcSSimon J. Gerraty# $NetBSD: suff-use.mk,v 1.2 2022/02/09 21:09:24 rillig Exp $ 2a6f0e10bSSimon J. Gerraty# 3a6f0e10bSSimon J. Gerraty# This test combines a .USE node with suffix rules, trying to add an 4a6f0e10bSSimon J. Gerraty# additional command before and after successful compilation of a .c file. 5a6f0e10bSSimon J. Gerraty# 6a6f0e10bSSimon J. Gerraty# History: 7*1d3f2ddcSSimon J. Gerraty# make-2001.11.12.21.58.18 8a6f0e10bSSimon J. Gerraty# | : 'Making demo.c out of nothing' 9a6f0e10bSSimon J. Gerraty# | make: don't know how to make demo.o. Stop 10a6f0e10bSSimon J. Gerraty# | 11*1d3f2ddcSSimon J. Gerraty# | make: stopped in <curdir> 12a6f0e10bSSimon J. Gerraty# | exit status 2 13*1d3f2ddcSSimon J. Gerraty# make-2007.10.11.21.19.28 14a6f0e10bSSimon J. Gerraty# 15*1d3f2ddcSSimon J. Gerraty# make-2014.08.23.15.05.40 16a6f0e10bSSimon J. Gerraty# | : 'Making demo.c out of nothing' 17a6f0e10bSSimon J. Gerraty# | : 'Compiling demo.c to demo.o' 18a6f0e10bSSimon J. Gerraty# | exit status 0 19*1d3f2ddcSSimon J. Gerraty# make-2014.09.05.06.57.20 20a6f0e10bSSimon J. Gerraty# 21*1d3f2ddcSSimon J. Gerraty# make-2014.09.07.20.55.34 22a6f0e10bSSimon J. Gerraty# | : 'Making demo.c out of nothing' 23a6f0e10bSSimon J. Gerraty# | make: don't know how to make demo.o. Stop 24a6f0e10bSSimon J. Gerraty# | 25*1d3f2ddcSSimon J. Gerraty# | make: stopped in <curdir> 26a6f0e10bSSimon J. Gerraty# | exit status 2 27a6f0e10bSSimon J. Gerraty# ... 28a6f0e10bSSimon J. Gerraty# 29a6f0e10bSSimon J. Gerraty# See also: 30a6f0e10bSSimon J. Gerraty# https://gnats.netbsd.org/20993 31a6f0e10bSSimon J. Gerraty 32a6f0e10bSSimon J. Gerraty 33a6f0e10bSSimon J. Gerraty.SUFFIXES: .c .o 34a6f0e10bSSimon J. Gerraty 35a6f0e10bSSimon J. Gerratyall: demo.o 36a6f0e10bSSimon J. Gerraty 37a6f0e10bSSimon J. Gerraty.c.o: 38a6f0e10bSSimon J. Gerraty : 'Compiling ${.IMPSRC} to ${.TARGET}' 39a6f0e10bSSimon J. Gerraty 40a6f0e10bSSimon J. Gerratydemo.c: 41a6f0e10bSSimon J. Gerraty : 'Making ${.TARGET} out of nothing' 42a6f0e10bSSimon J. Gerraty 43a6f0e10bSSimon J. Gerratyusing-before: .USEBEFORE 44a6f0e10bSSimon J. Gerraty : 'Before making ${.TARGET} from ${.ALLSRCS}' 45a6f0e10bSSimon J. Gerraty 46a6f0e10bSSimon J. Gerratyusing-after: .USE 47a6f0e10bSSimon J. Gerraty : 'After making ${.TARGET} from ${.ALLSRCS}' 48a6f0e10bSSimon J. Gerraty 49a6f0e10bSSimon J. Gerraty# expect: make: don't know how to make demo.o (continuing) 50a6f0e10bSSimon J. Gerraty.c.o: using-before using-after 51