jw-pkg/make/scripts-targets.mk

21 lines
482 B
Makefile
Raw Normal View History

2009-02-20 13:30:00 +00:00
all.done: $(BUILD_SCRIPT)
all: build_EXE build_CGI
install: install_INIT install_EXE install_CGI
2009-02-20 13:30:00 +00:00
clean:allclean localclean doneclean textclean clean.init
test:
2009-02-20 13:30:00 +00:00
ifeq ($(INSTALL_HOME_BIN_WRAPPERS),true)
install: install-home-bin
endif
2009-02-20 13:30:00 +00:00
HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(EXE_SH)))
$(HOME)/bin/%: %
echo -e "#!/bin/sh\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
chmod 755 $@.tmp
mv $@.tmp $@
install-home-bin: $(HOME_BIN_EXE_SH)
clean.init:
rm -f $(_INIT_SCRIPTS)