mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
![Simon J. Gerraty](/assets/img/avatar_default.png)
Lots of new unit-tests increase code coverage. Lots of refactoring, cleanup and simlpification to reduce code size. Fixes for Bug 223564 and 245807 Updates to dirdeps.mk and meta2deps.py
34 lines
863 B
Makefile
34 lines
863 B
Makefile
# $NetBSD: suff-rebuild.mk,v 1.2 2020/10/18 16:12:39 rillig Exp $
|
|
#
|
|
# Demonstrates what happens to transformation rules (called inference rules
|
|
# by POSIX) when all suffixes are deleted.
|
|
|
|
all: suff-rebuild-example
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .a .b .c
|
|
|
|
suff-rebuild-example.a:
|
|
: from nothing to a
|
|
|
|
.a.b:
|
|
: from a to b
|
|
.b.c:
|
|
: from b to c
|
|
.c:
|
|
: from c to nothing
|
|
|
|
# XXX: At a quick glance, the code in SuffScanTargets looks as if it were
|
|
# possible to delete the suffixes in the middle of the makefile, add back
|
|
# the suffixes from before, and have the transformation rules preserved.
|
|
#
|
|
# As of 2020-09-25, uncommenting the following line results in the error
|
|
# message "don't know how to make suff-rebuild-example" though.
|
|
#
|
|
#.SUFFIXES:
|
|
|
|
# Add the suffixes back. It should not matter that the order of the suffixes
|
|
# is different from before.
|
|
.SUFFIXES: .c .b .a
|