aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Cawley2019-05-18 14:02:25 +0100
committerCameron Cawley2019-05-18 14:02:25 +0100
commita265b1e029f6bba251d0d1f70f782a301f9021cd (patch)
tree86aee75d12891f43883c6b2d8fa7af7ef6ba40b3
parent95d4678de78f7c09b247161811660cefea1d24c5 (diff)
downloadscummvm-rg350-a265b1e029f6bba251d0d1f70f782a301f9021cd.tar.gz
scummvm-rg350-a265b1e029f6bba251d0d1f70f782a301f9021cd.tar.bz2
scummvm-rg350-a265b1e029f6bba251d0d1f70f782a301f9021cd.zip
BUILD: Fix converting the documentation outside the source directory
-rw-r--r--Makefile.common2
-rwxr-xr-xconfigure1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.common b/Makefile.common
index d937536fc7..78e0d6e423 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -237,7 +237,7 @@ VERFILE := $(DISTDIR)/$(DISTNAME)/base/internal_version.h
ifdef USE_PANDOC
# Convert README.md and NEWS.md to plain text for any platform that might require it
-%$(PANDOCEXT): ${srcdir}/%.md
+%$(PANDOCEXT): %.md
$(QUIET)$(MKDIR) $(*D)
$(QUIET_PANDOC)$(PANDOC) -f gfm -t $(PANDOCFORMAT) --metadata pagetitle=$(basename $(notdir $@)) -s -o $@ $<
endif
diff --git a/configure b/configure
index f40a8c73b0..665f381251 100755
--- a/configure
+++ b/configure
@@ -5706,6 +5706,7 @@ vpath %.asm \$(srcdir)
vpath %.s \$(srcdir)
vpath %.S \$(srcdir)
vpath %.rc \$(srcdir)
+vpath %.md \$(srcdir)
include \$(srcdir)/Makefile
EOF