jw-python/test/trim-src/Makefile
Jan Lindemann 6dd594d47b Fix multiple Python 3 compatibility issues
Changes in Python 3 that made the code choke:

  o basestring is merged into str
  o print() needs parentesis
  o Class inheritance syntax changed
  o Abstract baseclass (ABCMeta) syntax changed
  o map.iteritems() is replaced by map.items()
  o Inconsistent use of tabs and spaces are no longer tolerated

Signed-off-by: Jan Lindemann <jan@janware.com>
2019-03-10 16:38:59 +01:00

22 lines
343 B
Makefile

TOPDIR = ../..
MAKEFLAGS += --no-builtin-rules
INPUT = test.mk
EXE = $(TOPDIR)/scripts/trim-src.py
EXE_ARGS = beautify $(INPUT)
include $(TOPDIR)/make/proj.mk
include $(MODDIR)/make/py-run.mk
run: $(INPUT)
$(INPUT):
cp Makefile $@
clean.test:
rm -f $(INPUT)
clean: clean.test
help:
python3 $(EXE) -h
python3 $(EXE) beautify -h