summaryrefslogtreecommitdiffstats
path: root/Makefile.pythonscripts.am
blob: 0d0e38b5b673ad26061113062c93d26780e6761b (plain)
1
2
3
4
# 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 $@