From d2e9afc5862c03c727f9bd853ec2ba8adadc6d61 Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 9 Nov 2011 10:08:50 +0000 Subject: Add windows dist build rule --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 "$(NAME)" > $@ @@ -75,5 +85,5 @@ index.html: doap.ttl README sh websummary.sh doap.ttl | smu >> $@ echo '' >> $@ -.PHONY: all clean install uninstall dist +.PHONY: all clean install uninstall dist dist-win .SILENT: index.html dist -- cgit v1.2.3