We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9909f65 commit ad6f149Copy full SHA for ad6f149
Makefile
@@ -12,11 +12,14 @@ README.md: lexers/*/*.go
12
tokentype_string.go: types.go
13
go generate
14
15
-chromad:
+.PHONY: chromad
16
+chromad: build/chromad
17
+
18
+build/chromad: $(find . -name '*.go' -o -name '*.html' -o '*.css' -o '*.js')
19
rm -rf build
20
esbuild --bundle cmd/chromad/static/index.js --minify --outfile=cmd/chromad/static/index.min.js
21
esbuild --bundle cmd/chromad/static/index.css --minify --outfile=cmd/chromad/static/index.min.css
- (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 .)
23
24
upload: build/chromad
25
scp build/chromad root@swapoff.org: && \
0 commit comments