diff options
author | Peter Simons <simons@cryp.to> | 2014-10-26 19:55:41 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2014-10-26 20:04:46 +0100 |
commit | 41b1bd09c0ac2b433b23559d7834446bd77b2bba (patch) | |
tree | 89e8f48422c982c5e87a51ad9d1ab7bee8456f37 /cfg.mk | |
parent | 994fd6582cba71a5c5c295f6ad320e330c2ec485 (diff) | |
download | autoconf-archive-41b1bd09c0ac2b433b23559d7834446bd77b2bba.tar.gz |
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.
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 $@ |