summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 14 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 51b25cb..1d0f965 100644
--- a/Makefile
+++ b/Makefile
@@ -64,7 +64,8 @@ dist:
# 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 '/^\tset cmd / i set cmdbin [file join ./ $$cmdbin]' < getxbookgui.tcl > $(NAME)-$(VERSION)/getxbookgui.tcl
+ cp $(BIN) $(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/
@@ -76,14 +77,15 @@ dist-static: $(BIN)
echo $(NAME)-$(VERSION)-static.tar.bz2 $(NAME)-$(VERSION)-static.tar.bz2.sig
getxbookgui.exe: getxbookgui.tcl
- @echo STARPACK $@
- @sed 's/\/icons/\/..\/icons/;s/set cmd "/set cmd "tools\//' < getxbookgui.tcl > getxbookgui-win.tcl
- @sdx qwrap getxbookgui-win.tcl getxbookgui
- @sdx unwrap getxbookgui.kit
- @cp -f getxbook.ico getxbookgui.vfs/tclkit.ico
- @echo 'FileDescription "Book downloader"' > getxbookgui.vfs/tclkit.inf
- @sdx wrap $@ -runtime $(W32TCLKIT)
- @rm -r getxbookgui-win.tcl getxbookgui.kit getxbookgui.vfs
+ echo STARPACK $@
+ sed 's/ icons/ .. icons/' < getxbookgui.tcl > getxbookgui-win.tcl
+ sed -i '/^\tset cmd / i set cmdbin [file join tools $$cmdbin]' getxbookgui-win.tcl
+ sdx qwrap getxbookgui-win.tcl getxbookgui
+ sdx unwrap getxbookgui.kit
+ cp -f getxbook.ico getxbookgui.vfs/tclkit.ico
+ echo 'FileDescription "Book downloader"' > getxbookgui.vfs/tclkit.inf
+ sdx wrap $@ -runtime $(W32TCLKIT)
+ rm -r getxbookgui-win.tcl getxbookgui.kit getxbookgui.vfs
# needs config.mk set up to use mingw
dist-win: $(BIN) $(GUI:.tcl=.exe)
@@ -105,7 +107,8 @@ dist-win: $(BIN) $(GUI:.tcl=.exe)
index.html: doap.ttl README
echo making webpage
- echo "<!DOCTYPE html><html><head><title>$(NAME)</title>" > $@
+ echo '<?xml version="1.0" encoding="UTF-8"?>' > $@
+ echo "<!DOCTYPE html><html><head><title>$(NAME)</title>" >> $@
echo '<link rel="alternate" type="text/turtle" title="rdf" href="doap.ttl" />' >> $@
echo '<style type="text/css">' >> $@
echo "body {font-family:sans-serif; width:38em; margin:auto; max-width:94%;}" >> $@
@@ -114,7 +117,7 @@ index.html: doap.ttl README
echo "img {margin: auto; border: thin solid; display: block;}" >> $@
echo "</style></head><body>" >> $@
sed '5q' < README | smu >> $@
- echo "<p><img src="screenshot1.png" alt="screenshot"/></p>" >> $@
+ echo '<p><img src="screenshot1.png" alt="screenshot"/></p>' >> $@
echo "<h2>download</h2>" >> $@
echo "[$(NAME) $(VERSION) source]($(NAME)-$(VERSION).tar.bz2) ([sig]($(NAME)-$(VERSION).tar.bz2.sig)) ($(RELDATE))" | smu >> $@
echo "[$(NAME) $(VERSION) linux static]($(NAME)-$(VERSION)-static.tar.bz2) ([sig]($(NAME)-$(VERSION)-static.tar.bz2.sig)) ($(RELDATE))" | smu >> $@