From c357fba52c6b2633e95801ead643f8d210e9fb2a Mon Sep 17 00:00:00 2001 From: Piotr Fusik Date: Tue, 10 Jun 2014 13:50:42 +0200 Subject: [PATCH] OS X distribution. --- .gitignore | 1 + Makefile | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 55026d7..6223f68 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ *.html *.1 *.zip +*.dmg diff --git a/Makefile b/Makefile index e00ddf3..1e393d4 100644 --- a/Makefile +++ b/Makefile @@ -14,9 +14,21 @@ xasm.1: xasm.1.txt xasm-$(VERSION)-windows.zip: xasm xasm.html xasm.properties $(RM) $@ && 7z a -mx=9 -tzip $@ xasm.exe xasm.html xasm.properties -clean: - $(RM) xasm-$(VERSION)-windows.zip xasm xasm.exe xasm.html xasm.1 +osx: xasm-$(VERSION)-osx.dmg -.PHONY: all clean +xasm-$(VERSION)-osx.dmg: osx/xasm osx/bin + hdiutil create -volname xasm-$(VERSION)-osx -srcfolder osx -imagekey zlib-level=9 -ov $@ + +osx/xasm: xasm + mkdir -p osx && cp $< $@ + +osx/bin: + mkdir -p osx && ln -s /usr/bin $@ + +clean: + $(RM) xasm xasm.exe xasm.html xasm.1 xasm-$(VERSION)-windows.zip xasm-$(VERSION)-osx.dmg + rm -rf osx + +.PHONY: all osx clean .DELETE_ON_ERROR: