I'm trying to generate some code by several tools. So, I've write a file data.go as
package main
//go:generate awk -v OFILE=names.go -f gen_table.awk $HOME/prj/header.h
//go:generate gofmt -w names.go
//go:generate ./gen_index_html.sh
The generated names.go won't formatted automatically, so, I added the second line to force the correct format. And I assume it runs subsequently. Will Go generate jump into this directory before run these command? Because the script gen_index_html.sh just accept work in current directory.