summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-06-03 13:01:05 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-06-03 13:01:05 (GMT)
commitea8a21e12e15208d34f0b3acfa12bb03f3c213f8 (patch)
treefa2ad027b71bb5b5a158ad832a2afc51e840455f /Makefile
parent5374e69174e79923605853b65caa2b3a805e065a (diff)
downloadmxe-ea8a21e12e15208d34f0b3acfa12bb03f3c213f8.zip
mxe-ea8a21e12e15208d34f0b3acfa12bb03f3c213f8.tar.gz
mxe-ea8a21e12e15208d34f0b3acfa12bb03f3c213f8.tar.bz2
introduce placeholders for version number and target in the tutorial
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bd3d00f..dc51c74 100644
--- a/Makefile
+++ b/Makefile
@@ -154,7 +154,10 @@ dist:
($(foreach PKG,$(PKG_RULES), \
echo ' <tr><td><a href="$($(PKG)_WEBSITE)">$(PKG)</a></td><td>$($(PKG)_VERSION)</td></tr>';)) && \
$(SED) -n '/<!-- end of package list -->/,$$ p' '$(TOP_DIR)/doc/index.html' \
- ) >'$(TOP_DIR)/index.html'
+ ) \
+ | $(SED) 's,\(<span class="version">\)[^<]*\(</span>\),\1$(VERSION)\2,g' \
+ | $(SED) 's,\(<span class="target">\)[^<]*\(</span>\),\1$(TARGET)\2,g' \
+ >'$(TOP_DIR)/index.html'
cp -p '$(TOP_DIR)/index.html' 'mingw_cross_env-$(VERSION)/doc/'
cd 'mingw_cross_env-$(VERSION)/doc' && lynx -dump -width 75 -nolist -force_html index.html >README
cp -p '$(TOP_DIR)/Makefile' 'mingw_cross_env-$(VERSION)/'