From 41b1bd09c0ac2b433b23559d7834446bd77b2bba Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 26 Oct 2014 19:55:41 +0100 Subject: cfg.mk: copy 'README.md' to 'README' as part of the 'maintainer-all' target Github wants the file to be called README.md, but the GNU coding standards say that the file must be called README. Duh. So we compromise by keeping the file README.md in the Git repository for Github, but during the build process we make a suffix-less copy that is the one we'll also distribute in the release archives. --- cfg.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cfg.mk') diff --git a/cfg.mk b/cfg.mk index 655e3d4..1c0fe60 100644 --- a/cfg.mk +++ b/cfg.mk @@ -24,7 +24,7 @@ TEXI_FILES := $(patsubst %,$(DOCDIR)/%.texi,$(MACROS)) .PHONY: maintainer-all .PRECIOUS: $(patsubst %,$(STAGEDIR)/%.m4,$(MACROS)) -maintainer-all: $(TEXI_FILES) $(DOCDIR)/all-macros.texi +maintainer-all: $(TEXI_FILES) $(DOCDIR)/all-macros.texi $(srcdir)/README $(STAGEDIR)/manifest: @$(MKDIR_P) $(STAGEDIR) @@ -47,3 +47,7 @@ $(DOCDIR)/all-macros.texi: $(srcdir)/configure @echo '@end menu' >>"$@" @echo '' >>"$@" @for n in $(MACROS); do echo "@include $$n.texi" >>"$@"; done + +$(srcdir)/README : $(srcdir)/README.md + @cp -f $< $@ + @chmod -w $@ -- cgit v1.2.1