GNOME Bugzilla – Bug 657377
srcdir!=builddir builds discard contents of tmpl
Last modified: 2011-08-31 11:05:29 UTC
The setup-build.stamp rule in gtk-doc 1.17 contains: > test -f $(abs_srcdir)/tmpl && \ > cp -rp $(abs_srcdir)/tmpl $(abs_builddir)/; \ Because tmpl is supposed to be a directory, the test never succeeds. It should use -d or perhaps even -e (to allow symbolic links).
Thanks! commit aedc1d731a414be1e94893f050b47ee2934c60cd Author: Stefan Kost <ensonic@users.sf.net> Date: Thu Aug 25 22:44:04 2011 +0200 make: fix setup for tmpl based projects The test for the directory was using -f which should have been -d. Fixes #657377
Thanks, but that's apparently not enough for (make distcheck). I now use > test -d $(abs_srcdir)/tmpl && \ > { cp -r $(abs_srcdir)/tmpl $(abs_builddir)/; \ > chmod -R u+w $(abs_builddir)/tmpl; } \
Good catch, we're copying it from the srcdir and in distcheck its read-only. commit bea7a41be032678d8d414d72622b98e6a82dff25 Author: Stefan Kost <ensonic@users.sf.net> Date: Thu Aug 25 23:20:44 2011 +0200 make: fix distcheck for tmpl based projects Make the tmpl dir we copied in setup writable (as during distcheck the source is readonly).