Optimize assignments enumeration performance in Makefile.