mirror of
https://gitea.com/gitea/tea.git
synced 2024-11-25 20:11:36 +01:00
d6df0a53b5
Co-authored-by: Norwin Roosen <git@nroo.de> Co-authored-by: Norwin <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/390 Reviewed-by: 6543 <6543@obermui.de> Reviewed-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Norwin <noerw@noreply.gitea.io> Co-committed-by: Norwin <noerw@noreply.gitea.io>
20 lines
508 B
Makefile
20 lines
508 B
Makefile
.PHONY: chromad upload all
|
|
|
|
VERSION ?= $(shell git describe --tags --dirty --always)
|
|
|
|
all: README.md tokentype_string.go
|
|
|
|
README.md: lexers/*/*.go
|
|
./table.py
|
|
|
|
tokentype_string.go: types.go
|
|
go generate
|
|
|
|
chromad:
|
|
rm -f chromad
|
|
(export CGOENABLED=0 GOOS=linux ; cd ./cmd/chromad && go build -ldflags="-X 'main.version=$(VERSION)'" -o ../../chromad .)
|
|
|
|
upload: chromad
|
|
scp chromad root@swapoff.org: && \
|
|
ssh root@swapoff.org 'install -m755 ./chromad /srv/http/swapoff.org/bin && service chromad restart'
|