Improve prerequisite handling of partials/templates

Now each file in app-prod depends only on the corresponding
partial of the app directory using a static pattern rule.

To address the point raised by @elemoine in PR #87.