2009-02-20 13:30:00 +00:00
|
|
|
all.done: $(BUILD_SCRIPT)
|
2011-02-20 14:15:22 +00:00
|
|
|
all: build_EXE build_CGI
|
2017-06-24 18:26:00 +00:00
|
|
|
install: install_files_INIT install_EXE install_files_CGI install_files_SYSCFG
|
2009-02-20 13:30:00 +00:00
|
|
|
clean:allclean localclean doneclean textclean clean.init
|
2010-12-03 18:03:00 +00:00
|
|
|
test:
|
2009-02-20 13:30:00 +00:00
|
|
|
|
2009-05-27 14:36:43 +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)))
|
2014-04-24 19:13:43 +00:00
|
|
|
|
|
|
|
|
$(HOME)/bin/%.py: %.py
|
2019-06-02 12:28:13 +00:00
|
|
|
echo -e "#!/bin/bash\nexec $(PYTHON) $(shell $(PWD))/$<" '"$$@"' > $@.tmp
|
2014-04-24 19:13:43 +00:00
|
|
|
chmod 755 $@.tmp
|
|
|
|
|
mv $@.tmp $@
|
|
|
|
|
|
|
|
|
|
$(HOME)/bin/%.pl: %.pl
|
2017-12-18 13:45:55 +00:00
|
|
|
echo -e "#!/bin/bash\nexec /usr/bin/perl $(shell $(PWD))/$<" '"$$@"' > $@.tmp
|
2014-04-24 19:13:43 +00:00
|
|
|
chmod 755 $@.tmp
|
|
|
|
|
mv $@.tmp $@
|
|
|
|
|
|
2013-10-15 14:58:18 +00:00
|
|
|
$(HOME)/bin/%.sh: %.sh
|
2017-12-18 13:45:55 +00:00
|
|
|
echo -e "#!/bin/bash\n. $(shell $(PWD))/$<" '"$$@"' > $@.tmp
|
2009-02-20 13:30:00 +00:00
|
|
|
chmod 755 $@.tmp
|
|
|
|
|
mv $@.tmp $@
|
|
|
|
|
|
2014-04-24 19:13:43 +00:00
|
|
|
$(HOME)/bin/%: %
|
2017-12-18 13:45:55 +00:00
|
|
|
echo -e "#!/bin/bash\n. $(shell $(PWD))/$<" '"$$@"' > $@.tmp
|
2013-10-15 14:58:18 +00:00
|
|
|
chmod 755 $@.tmp
|
|
|
|
|
mv $@.tmp $@
|
|
|
|
|
|
2009-02-20 13:30:00 +00:00
|
|
|
install-home-bin: $(HOME_BIN_EXE_SH)
|
|
|
|
|
|
|
|
|
|
clean.init:
|
2017-09-02 19:26:52 +00:00
|
|
|
$(RM) -f $(_INIT_SCRIPTS)
|