Move bulk of rules from Makefile to Makefile.local.