summaryrefslogtreecommitdiffstats
path: root/Makefile.pythonscripts.am
blob: b76c02b6c1082b841004f25584f80c442531c351 (plain)
1
2
3
4
5
6
7
# special handling of Python scripts with auto-generated shebang line
$(PYTHON_SHEBANG):%: %.in Makefile
	$(AM_V_GEN)sed -e 's|^#!/usr/bin/python3.*|#!$(PYTHON) -E|g' $< > $@
	$(AM_V_GEN)chmod +x $@

.PHONY: python_scripts_sub
python_scripts_sub: $(PYTHON_SHEBANG)