add dependency generation in rules.mk