Makefile: use conditional assignments