aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2022-05-21 11:01:02 +0200
committerDmitry Vyukov <dvyukov@google.com>2022-05-23 11:53:38 +0200
commitecb7480009671f03b559ca19b0f4507f9e98e8e2 (patch)
tree7c0e76d54763df38b07defd26e9e8394a0d29a7f /Makefile
parentc06b338683a7a14ed2e9db22c5b5dae9c5fa5db6 (diff)
pkg/html/pages: switch to go:embed
We use clumsy generate scripts that embed some static files. Switch to the new go:embed thing (added in Go 1.16): https://pkg.go.dev/embed It's much nicer, does not require separate generate step and does not lead to additional diffs in code reviews. go:embed can only embed "files read from the package directory or subdirectories", so we need to move these assets to the package dir.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6a2fb7b57..18448309e 100644
--- a/Makefile
+++ b/Makefile
@@ -238,7 +238,7 @@ generate:
$(MAKE) format
generate_go: format_cpp
- $(GO) generate ./pkg/csource ./executor ./pkg/ifuzz ./pkg/build ./pkg/html/pages
+ $(GO) generate ./pkg/csource ./executor ./pkg/ifuzz ./pkg/build
generate_fidl:
ifeq ($(TARGETOS),fuchsia)