Last change
on this file since 67 was 67, checked in by Izuru Yakumo, 23 months ago |
Use vendored modules
Signed-off-by: Izuru Yakumo <yakumo.izuru@…>
|
File size:
520 bytes
|
Line | |
---|
1 | .PHONY: chromad upload all
|
---|
2 |
|
---|
3 | VERSION ?= $(shell git describe --tags --dirty --always)
|
---|
4 |
|
---|
5 | all: README.md tokentype_string.go
|
---|
6 |
|
---|
7 | README.md: lexers/*/*.go
|
---|
8 | ./table.py
|
---|
9 |
|
---|
10 | tokentype_string.go: types.go
|
---|
11 | go generate
|
---|
12 |
|
---|
13 | chromad:
|
---|
14 | rm -f chromad
|
---|
15 | (export CGOENABLED=0 GOOS=linux GOARCH=amd64; cd ./cmd/chromad && go build -ldflags="-X 'main.version=$(VERSION)'" -o ../../chromad .)
|
---|
16 |
|
---|
17 | upload: chromad
|
---|
18 | scp chromad root@swapoff.org: && \
|
---|
19 | ssh root@swapoff.org 'install -m755 ./chromad /srv/http/swapoff.org/bin && service chromad restart'
|
---|
Note:
See
TracBrowser
for help on using the repository browser.