Apache OpenOffice (AOO) Bugzilla – Issue 64869
Improve parsing of %-target definitions
Last modified: 2013-08-07 15:34:52 UTC
With dmake the following makefile segfaults: --- SHELL*:=/bin/sh SHELLFLAGS*:=-ce allnew : all %.x all : %.c touch $@ qqq.c : +echo qqq > qqq.c --- And this doesn't work as expected: --- SHELL*:=/bin/sh SHELLFLAGS*:=-ce allnew : qqq.y %.x %.y : %.c touch $@ qqq.c : +echo qqq > qqq.c --- $ rm qqq.? ; ./dmake/dmake.exe -rf multipercent.mk touch qqq.y Bottomline is that more than one %-target in the target section is not defined by the dmake man page. Patch will follow soon.
Another one along the same lines: --- SHELL*:=/bin/sh SHELLFLAGS*:=-ce .PHONY all : %.c touch all --- $ ./dmake/dmake.exe -rf attrpercent.mk dmake: Error: -- `%.c' not found, and can't be made That should be: dmake: attrpercent.mk: line 9: Error: -- Syntax error in % rule, missing % target
And while I'm at it: --- SHELL*:=/bin/sh SHELLFLAGS*:=-ce all : touch all .PHONY : all ; echo no recipe expected --- $ ./dmake/dmake.exe -rf attrtarget.mk touch all Hmm, recipe lines are not expected behind the "ATTRIBUTE_LIST : targets" form or some special targets like .INCLUDE .
Created attachment 36252 [details] Patch for dmake
The previous patch fixes these problems. Committed to CWS dmake45.
Committed the examples from this issue as testcases. Reassigning for verification.
Committed -> FIXED. @ause: Please verify.
played around with those samples. looks good
.