>> But how about making automake even smarter? >> 1. AC_CONFIG_FILES etc. are to be DISTCLEANED (aren't they already?) >> 2. nodist_ and target of a rule => CLEAN
> What if the file is in both? I have package-config file which is > generated by configure (AC_CONFIG_FILES) and then installed via > nodist_bin_SCRIPTS. That's not both, it's only the first one: it is not one of your target.