Fix immediate make distcheck
The current tree fails if run without a make all
stage, i.e. this fails:
./autgen.sh
make distcheck
but this works:
./autogen.sh
make
make distcheck
The cause is that some files generated by rules/compat/Makefile.am
need to be referenced in rules/Makefile.am
but that doesn't work across Nakefiles. So to fix this, merge the two makefiles into one.