@@ -9,13 +9,13 @@ PYTHON ?= python3
99PIP ?= pip3
1010RM ?= rm
1111
12- .PHONY : all build check clean develop dist doc pytest sdist test rmChangeLog
12+ .PHONY : all build check clean inputrc develop dist doc pytest sdist test rmChangeLog
1313
1414# : Default target - same as "develop"
1515all : develop
1616
1717# : build everything needed to install
18- build :
18+ build : inputrc
1919 $(PYTHON ) ./setup.py build
2020
2121# : Set up to run from the source tree
@@ -31,20 +31,31 @@ runner:
3131 watchgod mathicsscript.__main__.main
3232
3333# : Install mathicsscript
34- install :
34+ install : inputrc
3535 $(PYTHON ) setup.py install
3636
3737# : Run tests. You can set environment variable "o" for pytest options
38- check :
38+ check : inputrc
3939 py.test test $o
4040
41+ inputrc : mathicsscript/inputrc-unicode mathicsscript/inputrc-no-unicode
42+
43+ mathicsscript/inputrc-unicode :
44+ @echo " # GNU Readline input unicode translations\n# Autogenerated from mathics_scanner.generate.rl_inputrc on $$ (date)\n" > $@
45+ $(PYTHON ) -m mathics_scanner.generate.rl_inputrc inputrc-unicode >> $@
46+
47+ mathicsscript/inputrc-no-unicode :
48+ @echo " # GNU Readline input ASCII translations\n# Autogenerated from mathics_scanner.generate.rl_inputrc on $$ (date)\n" > $@
49+ $(PYTHON ) -m mathics_scanner.generate.rl_inputrc inputrc-no-unicode >> $@
50+
4151# Check StructuredText long description formatting
4252check-rst :
4353 $(PYTHON ) setup.py --long-description | ./rst2html.py > mathicsscript.html
4454
4555# : Remove derived files
4656clean :
4757 @find . -name " *.pyc" -type f -delete
58+ @rm mathicsscript/inputrc-no-unicode mathicsscript/inputrc-unicode || true
4859
4960# : Remove ChangeLog
5061rmChangeLog :
0 commit comments