summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2014-10-26 19:55:41 +0100
committerPeter Simons <simons@cryp.to>2014-10-26 20:04:46 +0100
commit41b1bd09c0ac2b433b23559d7834446bd77b2bba (patch)
tree89e8f48422c982c5e87a51ad9d1ab7bee8456f37 /cfg.mk
parent994fd6582cba71a5c5c295f6ad320e330c2ec485 (diff)
downloadautoconf-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.mk6
1 files changed, 5 insertions, 1 deletions
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 $@