defs-dev.mk, defs-dist.mk, scripts-targets.mk: Add INSTALL_HOME_BIN_WRAPPERS

This commit is contained in:
Jan Lindemann 2009-05-27 14:36:43 +00:00 committed by Jan Lindemann
commit c87430e099
3 changed files with 6 additions and 2 deletions

View file

@ -202,4 +202,4 @@ USE_COMPILER_DEBUG_OPTS ?= true
#USE_GLIB ?= true #USE_GLIB ?= true
#USE_ASSERTIONS ?= false #USE_ASSERTIONS ?= false
BREAK_ABI ?= true BREAK_ABI ?= true
#INSTALL_HOME_BIN_WRAPPERS ?= true

View file

@ -203,4 +203,4 @@ USE_COMPILER_DEBUG_OPTS ?= true
#USE_GLIB ?= true #USE_GLIB ?= true
USE_ASSERTIONS ?= false USE_ASSERTIONS ?= false
BREAK_ABI ?= false BREAK_ABI ?= false
INSTALL_HOME_BIN_WRAPPERS ?= false

View file

@ -3,6 +3,10 @@ all: build_SCRIPT build_CGI
install: install_INIT install_SCRIPT install_CGI install: install_INIT install_SCRIPT install_CGI
clean:allclean localclean doneclean textclean clean.init clean:allclean localclean doneclean textclean clean.init
ifeq ($(INSTALL_HOME_BIN_WRAPPERS),true)
install: install-home-bin
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/%: %
echo -e "#!/bin/sh\n. $(shell pwd)/$<" '"$$@"' > $@.tmp echo -e "#!/bin/sh\n. $(shell pwd)/$<" '"$$@"' > $@.tmp