X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=Makefile;h=6693689df93537c73359ff20423c9197e3d72c12;hb=41f174ae2048c812c337f38ee82bdce51dd74e9c;hp=1e629b944805f77bbfc05ffac20ea21f2b3e7819;hpb=9c582d87bca4bce0aa889cad0bd200ee85512f78;p=rrq%2Frrqforth.git diff --git a/Makefile b/Makefile index 1e629b9..6693689 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,16 @@ -BINARY = rrqforth +INCS := $(shell grep ^include rrqforth.asm | tr -d "'" | sed 's/include//' ) -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 - @echo "db '$(VERSION)'\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: - 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} > $@