Simplify publish Makefile target
Fix flake8 errors
Add flake8 to check Makefile target
Add missing deps and Makefile targets to pass tests