From 08d48e9f2c3613b68899e3af7d2ce00b3ca49bb5 Mon Sep 17 00:00:00 2001 From: Matan Bareket Date: Tue, 18 Dec 2018 20:09:09 -0500 Subject: [PATCH] BUILD: Copy README.md instead of README --- Makefile.common | 12 ++++++++---- backends/platform/sdl/win32/win32.mk | 2 +- configure | 1 + 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile.common b/Makefile.common index 9132a20e21a..2a0490d8fa4 100644 --- a/Makefile.common +++ b/Makefile.common @@ -6,12 +6,16 @@ # The default build target: just build the scummvm executable ###################################################################### -all: $(EXECUTABLE) plugins readme +all: $(EXECUTABLE) plugins ifdef SPLIT_DWARF all: $(EXECUTABLE).dwp endif +ifdef USE_PANDOC +all: readme +endif + ###################################################################### # Module settings ###################################################################### @@ -225,11 +229,11 @@ DISTNAME := scummvm-$(DISTVERSION) DISTDIR := dist VERFILE := $(DISTDIR)/$(DISTNAME)/base/internal_version.h -#ifdef USE_PANDOC +ifdef USE_PANDOC # Convert README.md to plain text for any platform that might require it readme: README.md - $(QUIET_PANDOC)pandoc $(PANDOCFLAGS) -#endif + $(QUIET_PANDOC)$(PANDOC) $(PANDOCFLAGS) +endif # TODO git via $(GITROOT) $(VERFILE): $(srcdir)/base/internal_version.h diff --git a/backends/platform/sdl/win32/win32.mk b/backends/platform/sdl/win32/win32.mk index 7ff6fdd1e7f..f878a9d755d 100644 --- a/backends/platform/sdl/win32/win32.mk +++ b/backends/platform/sdl/win32/win32.mk @@ -36,7 +36,7 @@ win32dist: all cp $(srcdir)/doc/da/HurtigStart $(WIN32PATH)/doc/da/HurtigStart.txt cp $(srcdir)/doc/de/Schnellstart $(WIN32PATH)/doc/de/Schnellstart.txt cp $(srcdir)/doc/se/Snabbstart $(WIN32PATH)/doc/se/Snabbstart.txt - cp $(srcdir)/README $(WIN32PATH)/README.txt + cp $(srcdir)/README.md $(WIN32PATH)/README.md cp $(WIN32SDLDOCPATH)/README-SDL.txt $(WIN32PATH)/README-SDL.txt cp $(srcdir)/doc/de/LIESMICH $(WIN32PATH)/doc/de/LIESMICH.txt cp $(srcdir)/doc/se/LasMig $(WIN32PATH)/doc/se/LasMig.txt diff --git a/configure b/configure index 716b4245aba..64d49af6d27 100755 --- a/configure +++ b/configure @@ -5578,6 +5578,7 @@ EXEPRE := $HOSTEXEPRE EXEEXT := $HOSTEXEEXT NASM := $NASM NASMFLAGS := $NASMFLAGS +PANDOC := $PANDOC PANDOCFLAGS := $PANDOCFLAGS ZLIB_LIBS := $ZLIB_LIBS ZLIB_CFLAGS := $ZLIB_CFLAGS