To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=48087
Issue #:|48087
Summary:|%-targets silently ignore the 2nd and following
|recipes
Component:|tools
Version:|current
Platform:|All
URL:|
OS/Version:|All
Status:|NEW
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P3
Subcomponent:|dmake
Assigned to:|hjs
Reported by:|vq
------- Additional comments from [EMAIL PROTECTED] Sun Apr 24 18:57:59 -0700
2005 -------
Example makefile:
----------
foo.target : foo.obj
%.obj : %.qqX %.xs
echo obj > $*.obj
foo.qq :
echo qq > foo.qq
foo.xs :
echo xs > foo.xs
----------
The previous makefile (and a code review of dmake/{rulparse.c,infer.c}) shows
that the second (and all following non '..') prerequisites are ignored.
Try:
%.obj : %.qq %.xs
echo obj > $*.obj
as a valid rule, that also builds only foo.qq.
Note 1:
%.obj :| %.qq %.xs
echo obj > $*.obj
creates multiple percent rules and the last encountered rule (%.obj : %.xs) is
used.
Note 2:
%.obj : %.qq '%.xs'
echo obj > $*.obj
works as expected and builds foo.xs and foo.qq.
Note 3:
%.obj :| %.qq '%.xs' '%.h'
echo obj > $*.obj
freezes dmake.
Note 4:
%.obj : %.qq '%.xs' '%.h'
echo obj > $*.obj
builds all three requisites.
Note 5:
%.obj : %.qq %.xs '%.h'
echo obj > $*.obj
errors out with "Ambiguous inference chains for target 'foo.obj'".
Note 6:
%.obj : %.qq %.aaa '%.xs' '%.h'
echo obj > $*.obj
is the same as note 4 but ignores %.aaa .
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]