updated rules.mk with DIR_NUM