diff --git a/make/scripts-targets.mk b/make/scripts-targets.mk index ae4b6b9b..c0e31fc6 100644 --- a/make/scripts-targets.mk +++ b/make/scripts-targets.mk @@ -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: