From 8db20b23852d979948b0f7f89914e5cff56ea732 Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 23 May 2012 16:11:35 +0100 Subject: Add rule for static unix builds --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index 2d23397..12da2e7 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,20 @@ dist: rm -rf $(NAME)-$(VERSION) echo $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).tar.bz2.sig +# needs config.mk set up to build statically +dist-static: $(BIN) + mkdir -p $(NAME)-$(VERSION) + cp $(BIN) $(GUI) $(DOC) $(MAN) config.mk $(NAME)-$(VERSION) + sed 's/^install: all$$/install:/' < Makefile > $(NAME)-$(VERSION)/Makefile + mkdir -p $(NAME)-$(VERSION)/icons + cp icons/* $(NAME)-$(VERSION)/icons/ + mkdir -p $(NAME)-$(VERSION)/extras + cp $(EXTRAS) $(NAME)-$(VERSION)/extras/ + tar c $(NAME)-$(VERSION) | bzip2 -c > $(NAME)-$(VERSION)-static.tar.bz2 + gpg -b < $(NAME)-$(VERSION)-static.tar.bz2 > $(NAME)-$(VERSION)-static.tar.bz2.sig + rm -rf $(NAME)-$(VERSION) + echo $(NAME)-$(VERSION)-static.tar.bz2 $(NAME)-$(VERSION)-static.tar.bz2.sig + getxbookgui.exe: getxbookgui.tcl @echo STARPACK $@ @sdx qwrap getxbookgui.tcl -- cgit v1.2.3