GNOME Bugzilla – Bug 687403
autotools: run "make distclean" only if there is a Makefile
Last modified: 2012-11-05 10:40:25 UTC
Proposing this patch to avoid running "make distclean" on directories without a Makefile. For example, pristine tarballs when makedistclean=True in jhbuildrc.
Created attachment 227866 [details] [review] autotools: run "make distclean" only if there is a Makefile When building a completely new jhbuild root, I hit a lot of "no distclean target" errors when building modules from tarballs. I have makedistclean=True in my jhbuilrc. I added a check in do_distclean so that "make distclean" is run: * ONLY if there is a usable Makefile in the directory. * AFTER giving self.branch.delete_unknown_files a chance to act.
Mmm. Commit message might a bit too anecdotic. I will fix it before pushing if the patch is OK :-)
Review of attachment 227866 [details] [review]: Thank you for the patch. Normally this check for a makefile is done in the skip_blah methods. See skip_clean for an example.
Created attachment 227896 [details] [review] This should be more like it. autotools: run "make distclean" only if there is a Makefile Make sure "make distclean" is run only if there is a Makefile.
Comment on attachment 227896 [details] [review] This should be more like it. Thank you for the patch. Committed. http://git.gnome.org/browse/jhbuild/commit/?id=f3a97b4262affdd6f54a8df8f09e3e54247e897a