bin_SCRIPTS += hacktree SUBSTITUTIONS = sed -e s,@libdir\@,$(libdir), -e s,@datarootdir\@,$(datarootdir), -e s,@PYTHON\@,$(PYTHON), hacktree: src/hacktree.in Makefile $(AM_V_GEN) $(SUBSTITUTIONS) $< > $@.tmp && mv $@.tmp $@ @chmod a+x $@ CLEANFILES += hacktree