mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 20:13:32 +01:00
37 lines
878 B
Makefile
37 lines
878 B
Makefile
all.done: $(BUILD_SCRIPT)
|
|
all: build_EXE build_CGI
|
|
install: install_files_INIT install_EXE install_files_CGI
|
|
clean:allclean localclean doneclean textclean clean.init
|
|
test:
|
|
|
|
ifeq ($(INSTALL_HOME_BIN_WRAPPERS),true)
|
|
install: install-home-bin
|
|
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
|
|
chmod 755 $@.tmp
|
|
mv $@.tmp $@
|
|
|
|
$(HOME)/bin/%.pl: %.pl
|
|
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
|
|
chmod 755 $@.tmp
|
|
mv $@.tmp $@
|
|
|
|
$(HOME)/bin/%: %
|
|
echo -e "#!/bin/bash\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
|
|
chmod 755 $@.tmp
|
|
mv $@.tmp $@
|
|
|
|
install-home-bin: $(HOME_BIN_EXE_SH)
|
|
|
|
clean.init:
|
|
rm -f $(_INIT_SCRIPTS)
|
|
|