added auto-versioning
[rrq/rrqforth.git] / Makefile
1 BINARY = rrqforth
2
3 default: rrqforth
4
5 version: main.fasm
6         git log --pretty=format:"msg db 'RRQ Forth version %h at %aI'" $< > $@
7         echo "\ndb 10" >> $@
8
9 rrqforth: main.fasm | version
10         fasm $^ $@
11         chmod a+x $@
12
13 clean:
14         rm -f version rrqforth