mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
Add script trim-src.py
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
5a87040e10
commit
24ba182fa1
5 changed files with 127 additions and 0 deletions
22
test/trim-src/Makefile
Normal file
22
test/trim-src/Makefile
Normal 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
|
||||
22
test/trim-src/test.mk
Normal file
22
test/trim-src/test.mk
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue