summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2012-05-23 16:11:35 +0100
committerNick White <git@njw.me.uk>2012-05-23 16:11:35 +0100
commit8db20b23852d979948b0f7f89914e5cff56ea732 (patch)
tree8b1606cb714b9a05c8cede52d48eadcc23fc8ffc /Makefile
parent45668273b648401b313dd79ab9beaaff91d8b585 (diff)
Add rule for static unix builds
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
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