xref: /freebsd/contrib/bmake/unit-tests/archive-suffix.mk (revision e2eeea75eb8b6dd50c1298067a0655880d186734)
1*e2eeea75SSimon J. Gerraty# $NetBSD: archive-suffix.mk,v 1.3 2020/11/15 14:07:53 rillig Exp $
22c3632d1SSimon J. Gerraty#
32c3632d1SSimon J. Gerraty# Between 2020-08-23 and 2020-08-30, the below code produced an assertion
4*e2eeea75SSimon J. Gerraty# failure in Var_SetWithFlags, triggered by Compat_Make, when setting the
52c3632d1SSimon J. Gerraty# .IMPSRC of an archive node to its .TARGET.
62c3632d1SSimon J. Gerraty#
72c3632d1SSimon J. Gerraty# The code assumed that the .TARGET variable of every node would be set, but
8*e2eeea75SSimon J. Gerraty# that is not guaranteed.
92c3632d1SSimon J. Gerraty#
102c3632d1SSimon J. Gerraty# Between 2016-03-15 and 2016-03-16 the behavior of the below code changed.
112c3632d1SSimon J. Gerraty# Until 2016-03-15, it remade the target, starting with 2016-03-16 it says
122c3632d1SSimon J. Gerraty# "`all' is up to date".
132c3632d1SSimon J. Gerraty
142c3632d1SSimon J. Gerraty.SUFFIXES:
152c3632d1SSimon J. Gerraty.SUFFIXES: .c .o
162c3632d1SSimon J. Gerraty
172c3632d1SSimon J. Gerratyall:	lib.a(obj1.o)
182c3632d1SSimon J. Gerraty
192c3632d1SSimon J. Gerraty.c.o:
202c3632d1SSimon J. Gerraty	: making $@
212c3632d1SSimon J. Gerraty
222c3632d1SSimon J. Gerratyobj1.c:
232c3632d1SSimon J. Gerraty	: $@
24