projects
/
rrq
/
rrqforth.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
baseline
[rrq/rrqforth.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 39e68f2b2adf940a953fa6520b32b14fc9ad48c7..1e629b944805f77bbfc05ffac20ea21f2b3e7819 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-2,9
+2,13
@@
BINARY = rrqforth
default: rrqforth
default: rrqforth
+VFMT := "RRQ Forth version %h at %aI"
+VERSION := $(shell git log -1 --pretty=format:'$(VFMT)' main.fasm)
+
+main.fasm: machine.fasm stdio.fasm
+
version: main.fasm
version: main.fasm
- git log --pretty=format:"msg db 'RRQ Forth version %h at %aI'" $< > $@
- echo "\ndb 10" >> $@
+ @echo "db '$(VERSION)'\ndb 10" > $@
rrqforth: main.fasm | version
fasm $^ $@
rrqforth: main.fasm | version
fasm $^ $@