#in Makefile.am BUILT_SOURCES = data.h # or += if is not the first time CLEANFILES = data.h # or += if is not the first time data.h: update_data.pl # if update_data.pl will be modified, the rule will trigger perl update_data.pl