Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: unnecessary template repackaging (#449)
Removes python caches on template test. This appears to be the original cause of unnecessary rebuilds. Adds pkger.go as an explict entry in the CODE prerequisite var. This ensures pkged.go is generated if it doesn't exist, and removes the need to explicitly enumerate it as a prerequisite to other targets. Adds pkger.go to the clean target. This allows a 'make clean && make' to work as one might expect. For example ensuring a rebuild if a template files is removed. The notable conceptual change here is that this does not induce a build of pkged.go by explicitly enumarating it as a prerequisite (a difficult thing to get right, and prone to errors in the future), but rather directly enumerates ./templates as its prerequisite. Additional minor modifications include: - regenerated pkged.go such that this takes effect for main on merge - adds an explicit target for the 'func' binary and aliases 'build' - Makefile help text cleanup and consolidation
- Loading branch information
Showing
3 changed files
with
29 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters