generalize shader string expansion process in makefile