瀏覽代碼

Make it easier to install linguaevalia

`go get` is not enough because then we'd miss the scripts from `bin/`.
Also, when using `go get` codemirror is missing.
Lucas Stadler 9 年之前
父節點
當前提交
28503366a7
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. 13 1
      go/linguaevalia/Makefile

+ 13 - 1
go/linguaevalia/Makefile

@ -1,4 +1,10 @@
1
all: lib/codemirror.js lib/codemirror.css
1
DESTDIR = $(HOME)/.local/bin
2
3
RUNNERS = $(wildcard bin/run-*)
4
5
all: deps
6
7
deps: lib/codemirror.js lib/codemirror.css
2 8
3 9
lib:
4 10
	mkdir lib
@ -22,5 +28,11 @@ lib/codemirror.js: lib
22 28
lib/codemirror.css: lib
23 29
	curl -o $@ http://codemirror.net/lib/codemirror.css
24 30
31
linguaevalia: *.go
32
	go build .
33
34
install: linguaevalia
35
	install -t $(DESTDIR) linguaevalia $(RUNNERS)
36
25 37
clean:
26 38
	rm -rf lib