summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-03-06 04:37:08 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-03-06 04:37:08 (GMT)
commit6f4ae758b3fe8492f05beff191f46694c3e2c960 (patch)
treeb339be24820341c673ea375af22d273e4d38af85 /Makefile
parent1464bccf36143937195a76bbafdf5b19c654bdf0 (diff)
downloadmxe-6f4ae758b3fe8492f05beff191f46694c3e2c960.zip
mxe-6f4ae758b3fe8492f05beff191f46694c3e2c960.tar.gz
mxe-6f4ae758b3fe8492f05beff191f46694c3e2c960.tar.bz2
merge text documentation and website into an HTML documentation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 1b5eef2..9ddb2db 100644
--- a/Makefile
+++ b/Makefile
@@ -121,15 +121,13 @@ dist:
mkdir 'mingw_cross_env-$(VERSION)/src'
(cd '$(TOP_DIR)' && hg log -v --style changelog) >'mingw_cross_env-$(VERSION)/doc/ChangeLog'
( \
- $(SED) -n '1,/^List/ { s/^\( Version:\).*/\1 $(VERSION)/; p }' '$(TOP_DIR)/doc/README' && \
- echo '================' && \
- echo && \
- ($(foreach PKG,$(PKG_RULES),echo '$(PKG)' '$($(PKG)_VERSION)';)) | \
- awk '{ printf " %-12s %s\n", $$1, $$2 }' && \
- echo && \
- echo && \
- $(SED) -n '/^Copyright/,$$ p' '$(TOP_DIR)/doc/README' \
- ) >'mingw_cross_env-$(VERSION)/doc/README'
+ $(SED) -n '1,/<!-- begin of package list -->/ p' '$(TOP_DIR)/doc/README.html' && \
+ ($(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/README.html' \
+ ) >'$(TOP_DIR)/README.html'
+ cp -p '$(TOP_DIR)/README.html' 'mingw_cross_env-$(VERSION)/doc/'
+ cd 'mingw_cross_env-$(VERSION)/doc' && lynx -dump -width 75 -nolist -force_html README.html >README
cp -p '$(TOP_DIR)/Makefile' 'mingw_cross_env-$(VERSION)/'
cp -p '$(TOP_DIR)/src'/*.mk 'mingw_cross_env-$(VERSION)/src/'
tar cvf - 'mingw_cross_env-$(VERSION)' | gzip -9 >'mingw_cross_env-$(VERSION).tar.gz'