projects
/
rrq
/
rrqforth.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
standardized call-out blocks
[rrq/rrqforth.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 39e68f2b2adf940a953fa6520b32b14fc9ad48c7..6693689df93537c73359ff20423c9197e3d72c12 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,14
+1,16
@@
-BINARY = rrqforth
+INCS := $(shell grep ^include rrqforth.asm | tr -d "'" | sed 's/include//' )
-default: rrqforth
-
-version: main.fasm
- git log --pretty=format:"msg db 'RRQ Forth version %h at %aI'" $< > $@
- echo "\ndb 10" >> $@
-
-rrqforth: main.fasm | version
- fasm $^ $@
+# compile into 3 things: binary, symbolic information and debug support
+rrqforth: rrqforth.asm $(INCS)
+ fasm $< -s $@.fas
+ ./fas2txt.lsp $@.fas > $@.map
chmod a+x $@
clean:
chmod a+x $@
clean:
- rm -f version rrqforth
+ rm -f rrqforth{,.fas,.map}
+
+ADOCS := $(shell echo adoc/*.adoc )
+DOCS = reference.adoc wordindex.adoc separator.adoc $(ADOCS)
+
+reference.html: $(DOCS)
+ asciidoc -bhtml ${@:.html=.adoc} > $@