mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
py-run.mk: Add target run.sh
Allow creation of a run.sh script, to be used from outside the make context. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
2989cc87c8
commit
f9193c989d
1 changed files with 8 additions and 0 deletions
|
|
@ -13,3 +13,11 @@ distclean:
|
||||||
|
|
||||||
run:
|
run:
|
||||||
$(PYTHON) $(EXE) $(EXE_ARGS)
|
$(PYTHON) $(EXE) $(EXE_ARGS)
|
||||||
|
|
||||||
|
run.sh:
|
||||||
|
echo -e "#!/bin/bash\n\nexport PYTHONPATH=$(PYTHONPATH)\nset -x\nexec $(PYTHON) $(EXE)" '"$$*"' > $@.tmp
|
||||||
|
chmod 755 $@.tmp
|
||||||
|
mv $@.tmp $@
|
||||||
|
clean-run-sh:
|
||||||
|
rm -f run.sh
|
||||||
|
clean: clean-run-sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue