2020-12-28 15:21:43 +01:00
|
|
|
PYTHON ?= python3
|
2021-01-18 16:43:33 +01:00
|
|
|
EDITOR ?= nano
|
2020-12-28 15:21:43 +01:00
|
|
|
|
2021-01-10 16:47:27 +01:00
|
|
|
default: baseimage
|
2020-12-28 15:21:43 +01:00
|
|
|
cp ngaImage pythonImage
|
2021-01-06 17:08:50 +01:00
|
|
|
$(PYTHON) tools/retro-extend.py pythonImage interface/clock.retro interface/filesystem.retro interface/floatingpoint.retro interface/rng.retro package/dict-words-listing.forth
|
2020-12-28 15:21:43 +01:00
|
|
|
$(PYTHON) tools/retro-embedimage.py pythonImage >vm/nga-python/InitialImage.py
|
|
|
|
rm -f pythonImage
|
2021-01-10 16:47:27 +01:00
|
|
|
|
|
|
|
baseimage:
|
|
|
|
$(PYTHON) tools/retro-muri.py image/retro.muri
|
|
|
|
$(PYTHON) tools/retro-extend.py ngaImage image/retro.forth
|
|
|
|
|
2021-01-18 16:43:33 +01:00
|
|
|
release:
|
|
|
|
retro tools/amalgamate-python.retro >rel/python/retroforth/retroforth.py
|
|
|
|
$(EDITOR) rel/python/setup.py
|
|
|
|
cd rel/python && python3 setup.py sdist bdist_wheel
|
|
|
|
|
|
|
|
upload:
|
|
|
|
cd rel/python && python3 -m twine upload dist/*
|