moved rules to Makefile