Every directory should have a test target, and the test target should depend on all so that all files are generated that might be needed for testing. This commit fixes some missing targets, and adds some missing dependencies.
Signed-off-by: Jan Lindemann <jan@janware.com>
35 lines
898 B
Makefile
35 lines
898 B
Makefile
all: build_EXE build_CGI
|
|
install: install_files_INIT install_EXE install_files_CGI install_files_SYSCFG
|
|
clean:allclean localclean doneclean textclean clean.init
|
|
test: all
|
|
|
|
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 $(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)
|