]> granicus.if.org Git - json-c/commitdiff
Fix 'make dist'
authorLászló Várady <laszlo.varady@balabit.com>
Fri, 4 Aug 2017 09:59:14 +0000 (11:59 +0200)
committerLászló Várady <laszlo.varady@balabit.com>
Fri, 4 Aug 2017 10:31:06 +0000 (12:31 +0200)
EXTRA_DIST copies the listed directories/files from the _source_ directory
into the distribution.

Since the doc directory does not exist after running autogen + configure
+ make dist, the distribution tarball generation fails.

Note that the dist-hook rule below operates on 'distdir', not on the source
directory where EXTRA_DIST expects the existence of the doc folder.

In summary, even if I removed 'doc' from EXTRA_DIST, the dist tarball will
always contain the documentation (due to the dist-hook rule).

Signed-off-by: László Várady <laszlo.varady@balabit.com>
Makefile.am

index 8728ff0e5768b33f5b251fe0d2f110ba691a82c1..cce39a0b0b7a02f46f5925abae5af107e2c0d8d4 100644 (file)
@@ -1,6 +1,6 @@
 EXTRA_DIST = README.md README.html README-WIN32.html 
 EXTRA_DIST += config.h.win32 json-c.vcproj json-c.vcxproj json-c.vcxproj.filters
-EXTRA_DIST += Doxyfile doc
+EXTRA_DIST += Doxyfile
 
 dist-hook:
        test -d "$(distdir)/doc" || mkdir "$(distdir)/doc"