diff options
author | Matan Bareket | 2018-12-18 01:14:15 -0500 |
---|---|---|
committer | Matan Bareket | 2018-12-25 11:37:26 -0500 |
commit | 9f19b34bac4a8165edc881a6b879f7a1dba87ace (patch) | |
tree | 71d718446b2af5f16188ddfc24c398bc865e7a89 | |
parent | 366f5c1421659ce607648e0c5fd4000e1e7bdc57 (diff) | |
download | scummvm-rg350-9f19b34bac4a8165edc881a6b879f7a1dba87ace.tar.gz scummvm-rg350-9f19b34bac4a8165edc881a6b879f7a1dba87ace.tar.bz2 scummvm-rg350-9f19b34bac4a8165edc881a6b879f7a1dba87ace.zip |
BUILD: Add pandoc to Makefile
-rw-r--r-- | Makefile.common | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common index 47091e65df..9132a20e21 100644 --- a/Makefile.common +++ b/Makefile.common @@ -6,7 +6,7 @@ # The default build target: just build the scummvm executable ###################################################################### -all: $(EXECUTABLE) plugins +all: $(EXECUTABLE) plugins readme ifdef SPLIT_DWARF all: $(EXECUTABLE).dwp @@ -69,6 +69,7 @@ QUIET_CC = @echo ' ' C ' ' $@; QUIET_CXX = @echo ' ' C++ ' ' $@; QUIET_AS = @echo ' ' AS ' ' $@; QUIET_NASM = @echo ' ' NASM ' ' $@; +QUIET_PANDOC = @echo ' ' PANDOC ' ' $@; QUIET_AR = @echo ' ' AR ' ' $@; QUIET_RANLIB = @echo ' ' RANLIB ' ' $@; QUIET_PLUGIN = @echo ' ' PLUGIN ' ' $@; @@ -224,6 +225,12 @@ DISTNAME := scummvm-$(DISTVERSION) DISTDIR := dist VERFILE := $(DISTDIR)/$(DISTNAME)/base/internal_version.h +#ifdef USE_PANDOC +# Convert README.md to plain text for any platform that might require it +readme: README.md + $(QUIET_PANDOC)pandoc $(PANDOCFLAGS) +#endif + # TODO git via $(GITROOT) $(VERFILE): $(srcdir)/base/internal_version.h @$(RM_REC) $(DISTDIR) @@ -253,7 +260,10 @@ dist-src: \ @#DEB-src? # Common files -DIST_FILES_DOCS:=$(addprefix $(srcdir)/,AUTHORS COPYING COPYING.BSD COPYING.LGPL COPYING.FREEFONT COPYRIGHT NEWS README) +DIST_FILES_DOCS:=$(addprefix $(srcdir)/,AUTHORS COPYING COPYING.BSD COPYING.LGPL COPYING.FREEFONT COPYRIGHT NEWS README.md) +ifdef USE_PANDOC +DIST_FILES_DOCS+=README +endif DIST_FILES_DOCS_languages=cz da de es fr it no-nb se DIST_FILES_DOCS_cz:=$(addprefix $(srcdir)/doc/cz/,PrectiMe) |