File: Bitfile

package info (click to toggle)
golang-github-alecthomas-chroma-v2 2.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 9,472 kB
  • sloc: xml: 39,589; python: 422; javascript: 357; sh: 37; makefile: 36
file content (24 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
VERSION = %(git describe --tags --dirty  --always)%
export CGOENABLED = 0

tokentype_enumer.go: types.go
  build: go generate

# Regenerate the list of lexers in the README
README.md: lexers/*.go lexers/*/*.xml table.py
  build: ./table.py
  -clean

implicit %{1}%{2}.min.%{3}: **/*.{css,js}
  build: esbuild --bundle %{IN} --minify --outfile=%{OUT}

implicit build/%{1}: cmd/*
  cd cmd/%{1}
  inputs: cmd/%{1}/**/* **/*.go
  build: go build -ldflags="-X 'main.version=%{VERSION}'" -o ../../build/%{1} .

#upload: chromad
#  build:
#    scp chromad root@swapoff.org:
#    ssh root@swapoff.org 'install -m755 ./chromad /srv/http/swapoff.org/bin && service chromad restart'
#    touch upload