summaryrefslogtreecommitdiffstats
path: root/doc/manpages
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2018-05-12 12:23:03 +0200
committerGitHub <noreply@github.com>2018-05-12 12:23:03 +0200
commit6b50b12ac75d635e78bee46d40bca936d03d1bc8 (patch)
tree10a0faa2f2796a3b37e0394cd48cad0156887256 /doc/manpages
parentMerge pull request #2132 from donaldsharp/missed_stuff (diff)
parentdoc: support VPATH builds (diff)
downloadfrr-6b50b12ac75d635e78bee46d40bca936d03d1bc8.tar.xz
frr-6b50b12ac75d635e78bee46d40bca936d03d1bc8.zip
Merge pull request #2162 from qlyoung/fix-vpath-build
doc: support VPATH builds
Diffstat (limited to 'doc/manpages')
-rw-r--r--doc/manpages/.gitignore2
-rw-r--r--doc/manpages/Makefile.in (renamed from doc/manpages/Makefile)9
2 files changed, 9 insertions, 2 deletions
diff --git a/doc/manpages/.gitignore b/doc/manpages/.gitignore
index 050553715..2e7d8573f 100644
--- a/doc/manpages/.gitignore
+++ b/doc/manpages/.gitignore
@@ -1,3 +1,3 @@
/_templates
/_build
-!/Makefile
+!/Makefile.in
diff --git a/doc/manpages/Makefile b/doc/manpages/Makefile.in
index ebbbc3100..f28746cee 100644
--- a/doc/manpages/Makefile
+++ b/doc/manpages/Makefile.in
@@ -1,4 +1,11 @@
-include ../frr-sphinx.mk
+# This is necessary to support VPATH builds.
+srcdir = @srcdir@
+VPATH = @srcdir@
+
+# This variable is used as the documentation source location in frr-sphinx.mk
+SOURCESDIR = @srcdir@
+
+include @srcdir@/../frr-sphinx.mk
# -----------------------------------------------------------------------------
# Automake requires that 3rd-party Makefiles recognize these targets.