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
12
12
tokentype_string.go : types.go
13
13
go generate
14
14
15
- chromad :
15
+ .PHONY : chromad
16
+ chromad : build/chromad
17
+
18
+ build/chromad : $(find . -name '*.go' -o -name '*.html' -o '*.css' -o '*.js' )
16
19
rm -rf build
17
20
esbuild --bundle cmd/chromad/static/index.js --minify --outfile=cmd/chromad/static/index.min.js
18
21
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 .)
20
23
21
24
upload : build/chromad
22
25
scp build/chromad
[email protected] :
&& \
You can’t perform that action at this time.
0 commit comments