Files
why/Makefile

11 lines
529 B
Makefile

# make does not handle last-modified dates on folders very well, so instead we use the inner binary as the target
why.app/Contents/MacOS/why.app: why documentTypes.plist
go tool appify -author "David Ashby" -version `git rev-parse --short HEAD` -id "in.yetaga.why" -name "why" -icon ./icon.png -plist ./documentTypes.plist ./why
rm why.app/Contents/README
documentTypes.plist: filetypes/*.go filetypes/cmd/*.go
go generate main.go
why: *.go filetypes/*.go noise.png icon.png go.mod go.sum $(go.work go.work.sum)
go build .