1VERSION = %(git describe --tags --dirty --always)%
2export CGOENABLED = 0
3
4tokentype_enumer.go: types.go
5 build: go generate
6
7# Regenerate the list of lexers in the README
8README.md: lexers/*.go lexers/*/*.xml table.py
9 build: ./table.py
10 -clean
11
12implicit %{1}%{2}.min.%{3}: **/*.{css,js}
13 build: esbuild --bundle %{IN} --minify --outfile=%{OUT}
14
15implicit build/%{1}: cmd/*
16 cd cmd/%{1}
17 inputs: cmd/%{1}/**/* **/*.go
18 build: go build -ldflags="-X 'main.version=%{VERSION}'" -o ../../build/%{1} .
19
20#upload: chromad
21# build:
22# scp chromad root@swapoff.org:
23# ssh root@swapoff.org 'install -m755 ./chromad /srv/http/swapoff.org/bin && service chromad restart'
24# touch upload