mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
make: Replace pwd by $(PWD)
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
efd4867be9
commit
f70465cbd5
17 changed files with 25 additions and 25 deletions
|
|
@ -11,22 +11,22 @@ endif
|
|||
HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(EXE_SH)))
|
||||
|
||||
$(HOME)/bin/%.py: %.py
|
||||
echo -e "#!/bin/bash\nexec /usr/bin/python $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||
echo -e "#!/bin/bash\nexec /usr/bin/python $(shell $(PWD))/$<" '"$$@"' > $@.tmp
|
||||
chmod 755 $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
$(HOME)/bin/%.pl: %.pl
|
||||
echo -e "#!/bin/bash\nexec /usr/bin/perl $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||
echo -e "#!/bin/bash\nexec /usr/bin/perl $(shell $(PWD))/$<" '"$$@"' > $@.tmp
|
||||
chmod 755 $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
$(HOME)/bin/%.sh: %.sh
|
||||
echo -e "#!/bin/bash\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||
echo -e "#!/bin/bash\n. $(shell $(PWD))/$<" '"$$@"' > $@.tmp
|
||||
chmod 755 $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
$(HOME)/bin/%: %
|
||||
echo -e "#!/bin/bash\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||
echo -e "#!/bin/bash\n. $(shell $(PWD))/$<" '"$$@"' > $@.tmp
|
||||
chmod 755 $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue