Makefile.in: fix build when CUDA is not enabled

Since we don't generate cuda.mk unless CUDA is enabled, we need
a conditional around the include statement in Makefile.in.