Add script trim-src.py

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-11-18 15:42:09 +01:00
commit 24ba182fa1
5 changed files with 127 additions and 0 deletions

22
test/trim-src/test.mk Normal file
View file

@ -0,0 +1,22 @@
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:
python $(EXE) -h
python $(EXE) beautify -h