summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <nick.white@proporta.com>2011-11-09 10:08:50 +0000
committerNick White <git@njw.me.uk>2011-11-09 22:58:18 +0000
commitd2e9afc5862c03c727f9bd853ec2ba8adadc6d61 (patch)
tree9e15cd476b9fb53b8d0692a4c43217d41d2f653b
parent7627ebb1d6dc912d40dadbc761fc1a316003e7d4 (diff)
Add windows dist build rule
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e64a509..14718c2 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,16 @@ dist:
rm -rf $(NAME)-$(VERSION)
echo $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).tar.bz2.sig
+# needs to be run from a mingw setup
+dist-win: $(BIN) $(GUI:.tcl=.exe)
+ mkdir -p $(NAME)-win
+ cp $(OBJ:.o=.exe) $(GUI:.tcl=.exe) $(NAME)-win
+ for f in $(DOC); do cp $$f $(NAME)-win/$$f.txt; done
+ zip -j $(NAME)-$(VERSION)-win.zip $(NAME)-win/*
+ gpg -b < $(NAME)-$(VERSION)-win.zip > $(NAME)-$(VERSION)-win.zip.sig
+ rm -rf $(NAME)-win
+ echo $(NAME)-$(VERSION)-win.zip $(NAME)-$(VERSION)-win.zip.sig
+
index.html: doap.ttl README
echo making webpage
echo "<!DOCTYPE html><html><head><title>$(NAME)</title>" > $@
@@ -75,5 +85,5 @@ index.html: doap.ttl README
sh websummary.sh doap.ttl | smu >> $@
echo '</body></html>' >> $@
-.PHONY: all clean install uninstall dist
+.PHONY: all clean install uninstall dist dist-win
.SILENT: index.html dist