File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,14 @@ README.md: lexers/*/*.go
1212tokentype_string.go : types.go
1313 go generate
1414
15- chromad :
15+ .PHONY : chromad
16+ chromad : build/chromad
17+
18+ build/chromad : $(find . -name '*.go' -o -name '*.html' -o '*.css' -o '*.js' )
1619 rm -rf build
1720 esbuild --bundle cmd/chromad/static/index.js --minify --outfile=cmd/chromad/static/index.min.js
1821 esbuild --bundle cmd/chromad/static/index.css --minify --outfile=cmd/chromad/static/index.min.css
19- (export CGOENABLED=0 ; cd ./ cmd/chromad && go build -ldflags=" -X 'main.version=$( VERSION) '" -o ../../build/chromad .)
22+ (export CGOENABLED=0 ; go build -C cmd/chromad -ldflags=" -X 'main.version=$( VERSION) '" -o ../../build/chromad .)
2023
2124upload : build/chromad
2225 scp build/chromad root@swapoff.org: && \
You can’t perform that action at this time.
0 commit comments