GNOME Bugzilla – Bug 452461
use $(wildcard) for *.sgml build dependency
Last modified: 2007-07-15 12:44:07 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
$(wildcard ...) is a GNU make extension, no?
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.
*** This bug has been marked as a duplicate of 156643 ***