autotools: Put automake conditionals in *.mk

Since we use a single Makefile layout, that will not trigger
subdirectory walking and simplify things a bit

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>