xref: /freebsd/contrib/bmake/unit-tests/archive-suffix.mk (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1# $NetBSD: archive-suffix.mk,v 1.3 2020/11/15 14:07:53 rillig Exp $
2#
3# Between 2020-08-23 and 2020-08-30, the below code produced an assertion
4# failure in Var_SetWithFlags, triggered by Compat_Make, when setting the
5# .IMPSRC of an archive node to its .TARGET.
6#
7# The code assumed that the .TARGET variable of every node would be set, but
8# that is not guaranteed.
9#
10# Between 2016-03-15 and 2016-03-16 the behavior of the below code changed.
11# Until 2016-03-15, it remade the target, starting with 2016-03-16 it says
12# "`all' is up to date".
13
14.SUFFIXES:
15.SUFFIXES: .c .o
16
17all:	lib.a(obj1.o)
18
19.c.o:
20	: making $@
21
22obj1.c:
23	: $@
24