From 3303d78ed929271674de61f260f48f22177be640 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 21 Aug 2012 20:02:37 +0100 Subject: More win makefile fixups --- Makefile | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'Makefile') 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 'CFBundlePackageTypeAPPL'"CFBundleExecutablegetxbookguiCFBundleVersion$(VERSION)CFBundleName$(NAME)" > $(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 "$(NAME)" > $@ -- cgit v1.2.3