dmoulding/boilermake — pull request #5 by jzhuge (2012-10-31 06:15:42+00:00)
Title: Support customer rule

I had to create a custom rule for "rpcgen" which reads "func.x" and generates "func.h", "func_xdr.c", "func_clnt.c", and "func_svc.c", but couldn't find any existing mechanism to allow that. Adding the custom rule directly to "xxx.mk" file doesn't work, because this rule will appear before "all". So I modified Makefile to support a new var "TGT_X_RULES" which is a list of makefile function names. These rules will be added after pattern rules and before "clean" rules.