2013-10-02 11:16:42 +00:00
|
|
|
VERSION = 3.1.0
|
2009-10-17 19:47:06 +00:00
|
|
|
|
2013-10-02 11:24:57 +00:00
|
|
|
all: xasm xasm.html
|
2009-10-17 19:47:06 +00:00
|
|
|
|
2013-10-02 11:24:57 +00:00
|
|
|
xasm: xasm.d
|
2009-10-17 19:47:06 +00:00
|
|
|
dmd -O -release $<
|
|
|
|
|
|
|
|
xasm.html: xasm.1.txt
|
2013-10-02 11:24:57 +00:00
|
|
|
asciidoc -o - $< | sed -e "s/527bbd;/20a0a0;/" >$@
|
2009-10-17 19:47:06 +00:00
|
|
|
|
2013-10-02 11:24:57 +00:00
|
|
|
xasm.1: xasm.1.txt
|
|
|
|
a2x -f manpage $<
|
|
|
|
|
|
|
|
xasm-$(VERSION)-windows.zip: xasm xasm.html xasm.properties
|
|
|
|
$(RM) $@ && 7z a -mx=9 -tzip $@ xasm.exe xasm.html xasm.properties
|
2009-10-17 19:47:06 +00:00
|
|
|
|
2014-06-10 11:50:42 +00:00
|
|
|
osx: xasm-$(VERSION)-osx.dmg
|
|
|
|
|
|
|
|
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 $@
|
|
|
|
|
2009-10-17 19:47:06 +00:00
|
|
|
clean:
|
2014-06-10 11:50:42 +00:00
|
|
|
$(RM) xasm xasm.exe xasm.html xasm.1 xasm-$(VERSION)-windows.zip xasm-$(VERSION)-osx.dmg
|
|
|
|
rm -rf osx
|
2013-10-02 11:16:42 +00:00
|
|
|
|
2014-06-10 11:50:42 +00:00
|
|
|
.PHONY: all osx clean
|
2009-10-17 19:47:06 +00:00
|
|
|
|
|
|
|
.DELETE_ON_ERROR:
|