Add static code analyze command in OpenWRT build

Hello! Sorry for my English, I am from Russia.

I need to add static code analyze operation for selected packages. Analyze is performed after build is completed. Analyze commands may be common or custom. I want write it in package Makefile, like this:

defun Package/static-analyze
      ..commands for static analyze..

I want call static analyze by commands, like:

for all selected packages:
make -j1 package/static-analyze

for single package:

make -J1 package/mypackage/static-analyze

How can I do this?