[master] 9d8b62f Fix out-of-tree builds
Nils Goroll
nils.goroll at uplex.de
Mon Sep 29 16:34:00 CEST 2014
commit 9d8b62f42276aa80540f22eb1bd1c12836954066
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Mon Sep 29 16:33:32 2014 +0200
Fix out-of-tree builds
Fixes #1479
diff --git a/doc/sphinx/Makefile.am b/doc/sphinx/Makefile.am
index 0d681e8..c872ddd 100644
--- a/doc/sphinx/Makefile.am
+++ b/doc/sphinx/Makefile.am
@@ -10,7 +10,7 @@ BUILDDIR = build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
-ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(srcdir)
+ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(distdir)
.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
@@ -95,7 +95,6 @@ EXTRA_DIST = \
glossary \
installation \
phk \
- reference \
tutorial \
users-guide \
whats-new
@@ -144,11 +143,16 @@ include/varnishhist_synopsis.rst: $(top_builddir)/bin/varnishhist/varnishhist_op
BUILT_SOURCES += include/varnishhist_options.rst \
include/varnishhist_synopsis.rst
-reference/vmod_std.generated.rst: $(top_srcdir)/lib/libvmod_std/vmod_std.rst
+.PHONY: reference
+reference:
+ test -d $@ || mkdir $@
+BUILT_SOURCES += reference
+
+reference/vmod_std.generated.rst: $(top_builddir)/lib/libvmod_std/vmod_std.rst
cp $? $@
BUILT_SOURCES += reference/vmod_std.generated.rst
-reference/vmod_directors.generated.rst: $(top_srcdir)/lib/libvmod_directors/vmod_directors.rst
+reference/vmod_directors.generated.rst: $(top_builddir)/lib/libvmod_directors/vmod_directors.rst
cp $? $@
BUILT_SOURCES += reference/vmod_directors.generated.rst
diff --git a/man/Makefile.am b/man/Makefile.am
index c7dd1bf..d791d1f 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -86,8 +86,8 @@ varnishhist.1: \
$(top_srcdir)/doc/sphinx/include/varnishhist_synopsis.rst
${RST2MAN} $(RST2ANY_FLAGS) $(top_srcdir)/doc/sphinx/reference/varnishhist.rst $@
-vmod_std.3: $(top_srcdir)/lib/libvmod_std/vmod_std.man.rst
+vmod_std.3: $(top_builddir)/lib/libvmod_std/vmod_std.man.rst
${RST2MAN} $(RST2ANY_FLAGS) $? $@
-vmod_directors.3: $(top_srcdir)/lib/libvmod_directors/vmod_directors.man.rst
+vmod_directors.3: $(top_builddir)/lib/libvmod_directors/vmod_directors.man.rst
${RST2MAN} $(RST2ANY_FLAGS) $? $@
More information about the varnish-commit
mailing list