[hipl-commit] [trunk] Rev 4363: Remove doc/Doxyfile from the dist tarball manually.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 20 Apr 2010 16:44:03 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 20/04/2010 at 16:44:03
Revision: 4363
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Remove doc/Doxyfile from the dist tarball manually.
  
  The complete doc/ subdirectory is listed in EXTRA_DIST to work around the
  braindead way that autotools uses to construct distribution tarballs, namely
  only include what has been explicitly listed.  Since this is error-prone, we
  add complete directories to EXTRA_DIST and never have to worry about declaring
  new files as dist_THIS and dist_THAT.  Of course this breaks down when there
  is a generated file in such a subdirectory, such as doc/Doxyfile.
  
  So in summary, this disgusting hack is necessary to work around the issue we
  have with the stupid dist* implementation in automake.  Way to go...

Modified:
  M  Makefile.am

=== modified file 'Makefile.am'
--- Makefile.am 2010-04-20 11:12:06 +0000
+++ Makefile.am 2010-04-20 13:36:41 +0000
@@ -492,4 +492,9 @@
 $(srcdir)/version.h: $(wildcard $(srcdir)/.bzr/branch/last-revision)
        echo "#define BZR_REVISION \"$$(bzr revno $(srcdir))\"" > $@
 
+# The complete doc/ subdirectory is in EXTRA_DIST, so files that should
+# not be distributed need to be deleted manually from the distribution.
+dist-hook:
+       rm -f $(distdir)/doc/Doxyfile
+
 .PHONY: bin checkheaders deb doxygen increl olddeb rpm syncrepo

Other related posts:

  • » [hipl-commit] [trunk] Rev 4363: Remove doc/Doxyfile from the dist tarball manually. - Diego Biurrun