mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
run.mk: Add echo-run-script
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
b0e975388d
commit
de6912a99a
1 changed files with 9 additions and 2 deletions
11
make/run.mk
11
make/run.mk
|
|
@ -23,6 +23,7 @@ endif
|
|||
|
||||
EXE_PATH ?= ./$(EXE)
|
||||
CHECK_CONF_EXE ?= $(firstword $(wildcard $(CVS_PROJ_DIR)/valdi/bin/checkconf) checkconf)
|
||||
SHORTCUT_SCRIPT ?= ./run.sh
|
||||
|
||||
LOCAL_CFLAGS += -DEXE_NAME=\"$(EXE)\"
|
||||
LOCAL_CPPFLAGS += -DEXE_NAME=\"$(EXE)\"
|
||||
|
|
@ -68,8 +69,14 @@ start: all
|
|||
rm -f core.*
|
||||
$(EXE_PATH) $(EXE_ARGS) &
|
||||
|
||||
echo-run-script:
|
||||
@echo -e "#!/bin/bash\n\nexport LD_LIBRARY_PATH=$(LD_LIBRARY_PATH)\nexport PATH=$(PATH)\n$(EXE_PATH) $(EXE_ARGS)"
|
||||
shortcut: $(SHORTCUT_SCRIPT)
|
||||
$(SHORTCUT_SCRIPT):
|
||||
echo -e "#!/bin/bash\n\nexport LD_LIBRARY_PATH=$(LD_LIBRARY_PATH)\nexport PATH=$(PATH)\n$(EXE_PATH) $(EXE_ARGS)" > $@.tmp
|
||||
chmod 755 $@.tmp
|
||||
mv $@.tmp $@
|
||||
distclean.shortcut:
|
||||
rm -f $(SHORTCUT_SCRIPT)
|
||||
distclean: distclean.shortcut
|
||||
|
||||
clean: vg-clean-supp clean.out
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue