diff options
Diffstat (limited to 'Makefile.common')
-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) |