summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-11-08 23:01:19 +0000
committerNick White <git@njw.me.uk>2011-11-08 23:01:19 +0000
commit5ba1b587618ed09c169655f722bd72d9db82343b (patch)
tree400b3114bcb5a29e6d36d9848f1821e829119b78 /Makefile
parentfca6360e428cfd63c0d8f9fc30b83d27a611bf4a (diff)
Add gui starpack build rule
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0428b51..4710acf 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ NAME = getxbook
SRC = getgbook.c getabook.c
LIB = util.o
-GUI = getxbookgui
+GUI = getxbookgui.tcl
DOC = README COPYING INSTALL LEGAL
EXTRAS = extras/mkpdf.sh extras/mkocrpdf.sh
@@ -31,6 +31,13 @@ util.a: $(LIB)
@$(AR) -r -c $@ $(LIB)
@ranlib $@
+getxbookgui.exe: getxbookgui.tcl
+ @echo STARPACK $@
+ @sdx qwrap getxbookgui.tcl
+ @sdx unwrap getxbookgui.kit
+ @sdx wrap $@ -runtime $(TCLKIT)
+ @rm -r getxbookgui.kit getxbookgui.vfs
+
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f $(BIN) $(GUI) $(DESTDIR)$(PREFIX)/bin