changeset 337:386a9febfa73

Improvements in Windows Makefile.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 21 Jun 2011 21:35:31 +0300
parents 1ad1c7bf348c
children e6bb187a3153
files Makefile.w32
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.w32	Mon Jun 20 04:34:43 2011 +0300
+++ b/Makefile.w32	Tue Jun 21 21:35:31 2011 +0300
@@ -41,6 +41,15 @@
 resource.o: resource.rc
 	i386-mingw32-windres $< -O coff -o $@
 
-installer: $(NNCHAT_BIN)
-	@wget -O $(BINPATH)/README.html http://www.tnsp.org/~ccr/nnchat/
+
+DOC=$(BINPATH)/README.html
 
+update-doc:
+	@wget -O- http://www.tnsp.org/~ccr/nnchat/ | tr '\n' '' | sed "s/<.-- BEGIN -->.*<.-- END -->//g" | tr '' '\n' > $(DOC).new
+	@if diff -u $(DOC) $(DOC).new; then cp $(DOC).new $(DOC); fi
+
+$(DOC): update-doc
+
+upload: $(BINPATH)/nncsetup.msi $(DOC)
+	@scp $< ccr@tnsp.org:public_html/nnchat/
+	touch $@