mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
508 B
19 lines
508 B
.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'
|
|
|