mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +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
|
||||
|
||||
HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(EXE_SH)))
|
||||
$(HOME)/bin/%: %
|
||||
$(HOME)/bin/%.sh: %.sh
|
||||
echo -e "#!/bin/sh\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||
chmod 755 $@.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)
|
||||
|
||||
clean.init:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue