After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 452461 - use $(wildcard) for *.sgml build dependency
use $(wildcard) for *.sgml build dependency
Status: RESOLVED DUPLICATE of bug 156643
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-30 05:39 UTC by Allison Karlitskaya (desrt)
Modified: 2007-07-15 12:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allison Karlitskaya (desrt) 2007-06-30 05:39:51 UTC
in gtk-doc.make, sgml-build.stamp depends on $(srcdir)/tmpl/*.sgml

this rule exists so that if any sgml files are changed a rebuild will be triggered

of course, this is a problem if the sgml files do not yet exist.  wildcard expansion fails and make looks for a file literally called "*.sgml" which does not exist.  make fails.

make contains a feature to work around this limitation.  the solution is to use the $(wildcard) expansion like this:

$(wildcard $(srcdir)/tmpl/*.sgml)

in this case, if the wildcard fails to match it is replaced by the empty string.

cheers
Comment 1 Owen Taylor 2007-07-02 12:45:35 UTC
$(wildcard ...) is a GNU make extension, no?
Comment 2 Allison Karlitskaya (desrt) 2007-07-02 16:59:38 UTC
i don't know.


another alternative might be to create a dummy .sgml file in that directory that is removed the first time the real .sgml files are created.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2007-07-15 12:44:07 UTC

*** This bug has been marked as a duplicate of 156643 ***