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