make/src
Dmitry Goncharov bb21dd4d2d [SV 62278] Only expand the first pattern during secondary expansion
During normal pattern rule expansion only the first pattern (%) is
expanded; however during secondary expansion all patterns were
expanded.  Modify secondary expansion to match the behavior of normal
expansion.

Implementation tweaked by Paul Smith <psmith@gnu.org>

* src/file.c (expand_deps): Don't use subst_expand() which replaces
all % with $*: instead replace only the first one, by hand.
Fix a memory leak where the dep structure was not always freed.
* tests/scripts/features/statipattrules: Use .RECIPEPREFIX not TAB.
Add a series of tests verifying that static pattern rules with and
without secondary expansion both return the same results.
2022-04-24 10:39:32 -04:00
..
w32 * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
amiga.c Remove extraneous characters from fatal() calls 2022-02-27 18:01:13 -05:00
amiga.h * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
ar.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
arscan.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
commands.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
commands.h * src/commands.h: [SV 62213] Forward-declare struct file / child 2022-04-24 10:39:32 -04:00
config.ami.template * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
config.h-vms.template * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
config.h.W32.template * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
configh.dos.template * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
debug.h * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
default.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
dep.h * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
dir.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
expand.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
file.c [SV 62278] Only expand the first pattern during secondary expansion 2022-04-24 10:39:32 -04:00
filedef.h * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
function.c Ensure buffers are large enough for integer values 2022-02-21 09:29:41 -05:00
getopt1.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
getopt.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
getopt.h * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
gettext.h * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
gmk-default.scm * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
gnumake.h * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
guile.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
hash.c Clean up a few Windows build warnings (not all!) 2021-09-05 21:09:27 -04:00
hash.h Rework directory structure to use GNU-recommended "src" directory. 2017-11-19 14:07:22 -05:00
implicit.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
job.c [SV 62145] Remove a stdin temp file on re-exec failure. 2022-04-24 10:39:32 -04:00
job.h [SV 62145] Remove a stdin temp file on re-exec failure. 2022-04-24 10:39:32 -04:00
load.c Remove extraneous characters from fatal() calls 2022-02-27 18:01:13 -05:00
loadapi.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
main.c [SV 62145] Remove a stdin temp file on re-exec failure. 2022-04-24 10:39:32 -04:00
makeint.h Ensure buffers are large enough for integer values 2022-02-21 09:29:41 -05:00
misc.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
os.h * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
output.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
output.h * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
posixos.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
read.c * src/read.c (check_specials): [SV 62171] Reset ARFLAGS under .POSIX 2022-04-24 10:39:32 -04:00
remake.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
remote-cstms.c * src/commands.h: [SV 62213] Forward-declare struct file / child 2022-04-24 10:39:32 -04:00
remote-stub.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
rule.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
rule.h * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
signame.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
strcache.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
variable.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
variable.h * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
version.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
vms_exit.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
vms_export_symbol.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
vms_progname.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
vmsdir.h * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
vmsfunctions.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
vmsify.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
vmsjobs.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00
vpath.c * <all>: Update copyright notices. 2022-02-10 14:48:26 -05:00