mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
scripts-targets.mk: Now correctly installing python scripts with build.py
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
bfc215d711
commit
2ed223c636
1 changed files with 6 additions and 1 deletions
|
|
@ -9,11 +9,16 @@ install: install-home-bin
|
||||||
endif
|
endif
|
||||||
|
|
||||||
HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(EXE_SH)))
|
HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(EXE_SH)))
|
||||||
$(HOME)/bin/%: %
|
$(HOME)/bin/%.sh: %.sh
|
||||||
echo -e "#!/bin/sh\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
|
echo -e "#!/bin/sh\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||||
chmod 755 $@.tmp
|
chmod 755 $@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
$(HOME)/bin/%.py: %.py
|
||||||
|
echo -e "#!/bin/sh\nexec /usr/bin/python $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||||
|
chmod 755 $@.tmp
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
install-home-bin: $(HOME_BIN_EXE_SH)
|
install-home-bin: $(HOME_BIN_EXE_SH)
|
||||||
|
|
||||||
clean.init:
|
clean.init:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue