summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2012-08-21 20:02:37 +0100
committerNick White <git@njw.me.uk>2012-08-21 20:02:37 +0100
commit3303d78ed929271674de61f260f48f22177be640 (patch)
tree72e25b7edf4e7a2c42d17b712a02515c14d540c0
parent19342a9b22209d023d5973f1184cf95ca0d9bea5 (diff)
More win makefile fixups
-rw-r--r--Makefile22
1 files changed, 3 insertions, 19 deletions
diff --git a/Makefile b/Makefile
index 96a87d4..adcf8a2 100644
--- a/Makefile
+++ b/Makefile
@@ -82,12 +82,11 @@ getxbookgui.exe: getxbookgui.tcl
@sdx wrap $@ -runtime $(W32TCLKIT)
@rm -r getxbookgui.kit getxbookgui.vfs
-# needs to be run from a mingw setup
+# needs config.mk set up to use mingw
dist-win: $(BIN) $(GUI:.tcl=.exe)
mkdir -p $(NAME)-win
cp $(GUI:.tcl=.exe) $(NAME)-win
- for f in $(OBJ) ; do \
- cp $$f $(NAME)-win/$$f.exe
+ for f in $(BIN); do cp $$f $(NAME)-win/$$f.exe; done
mkdir -p $(NAME)-win/icons
cp icons/* $(NAME)-win/icons/
for f in LEGAL README COPYING; do \
@@ -95,26 +94,11 @@ dist-win: $(BIN) $(GUI:.tcl=.exe)
for f in *1; do \
b=`basename $$f .1`; \
groff -m man -T utf8 < $$f | col -bx | sed 's/$$/\r/g' > $(NAME)-win/$$b.txt; done
- zip -j $(NAME)-$(VERSION)-win.zip $(NAME)-win/*
+ cd $(NAME)-win; zip -r ../$(NAME)-$(VERSION)-win.zip .;cd ..
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
-# needs to be run from a mac
-# currently unused thanks to kind homebrew people packaging it
-dist-mac: $(BIN) $(GUI)
- mkdir -p $(NAME)-$(VERSION)/$(NAME).app/Contents/MacOS
- mkdir -p $(NAME)-$(VERSION)/$(NAME).app/Contents/Resources
- cp $(BIN) $(NAME)-$(VERSION)/$(NAME).app/Contents/MacOS/
- cp $(GUI) $(NAME)-$(VERSION)/$(NAME).app/Contents/MacOS/$(GUI:.tcl=)
- for f in $(DOC); do cp $$f $(NAME)-$(VERSION)/$$f.txt; done
- echo '<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>CFBundlePackageType</key><string>APPL</string>'"<key>CFBundleExecutable</key><string>getxbookgui</string><key>CFBundleVersion</key><string>$(VERSION)</string><key>CFBundleName</key><string>$(NAME)</string></dict></plist>" > $(NAME)-$(VERSION)/$(NAME).app/Contents/Info.plist
- hdiutil create -srcfolder $(NAME) $(NAME)-$(VERSION).dmg
- hdiutil internet-enable -yes $(NAME)-$(VERSION).dmg
- gpg -b < $(NAME)-$(VERSION)-mac.dmg > $(NAME)-$(VERSION)-mac.dmg.sig
- rm -rf $(NAME)-$(VERSION)
- echo $(NAME)-$(VERSION)-mac.dmg $(NAME)-$(VERSION)-mac.dmg.sig
-
index.html: doap.ttl README
echo making webpage
echo "<!DOCTYPE html><html><head><title>$(NAME)</title>" > $@