GNOME Bugzilla – Bug 134247
install creates directory when it's not needed
Last modified: 2004-12-22 21:47:04 UTC
The Makefile.am file in doc/gconf checks if there are files in doc/gconf/html, proceding to install them in the system if some are found. It also creates the target directory where they will be installed (obviously). The problem is that the directory is created before any check is done, so an empty directory will be created in the system even if nothing will be installed into it. This does not cause more problems that beeing "ugly", since the GConf package in pkgsrc needs to take care of this empty directory, and could be desireable if it hadn't to. The fix I attached moves the mkinstalldirs call inside the conditional.
Created attachment 24366 [details] [review] Patch for doc/gconf/Makefile.am
Sorry, that patch is completely broken. I've attached a new one that works properly. By the way, you may consider using gtk-doc.make instead of keeping an internal copy of it in doc/gconf/Makefile.am, so you benefit from fixes done to that file.
Created attachment 24383 [details] [review] New patch that works...
Thanks for the patch. Committed on HEAD and gnome-2-6 2004-06-12 Mark McLoughlin <mark@skynet.ie> Patch from Julio M. Merino Vidal <jmmv@menta.net> in bug #134247. * doc/gconf/Makefile.am: don't create a directory if its not needed.