mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
921d803d15
The make target `pylint` hasn't a full list of its dependencies. This leads to problems like: - different build results - PR tests just do not run pylint over some Python scripts. The new build target (`python_scripts`) was implemented. It's intended for building all Python scripts (files, containing @PYTHONSHEBANG@ as a shebang placeholder). The make `pylint` should require it. Fixes: https://pagure.io/freeipa/issue/7921 Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Christian Heimes <cheimes@redhat.com>
8 lines
261 B
Makefile
8 lines
261 B
Makefile
# special handling of Python scripts with auto-generated shebang line
|
|
$(PYTHON_SHEBANG):%: %.in Makefile
|
|
$(AM_V_GEN)sed -e 's|@PYTHONSHEBANG[@]|#!$(PYTHON) -E|g' $< > $@
|
|
$(AM_V_GEN)chmod +x $@
|
|
|
|
.PHONY: python_scripts_sub
|
|
python_scripts_sub: $(PYTHON_SHEBANG)
|