Browse Source

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 years ago
parent
commit
28503366a7
1 changed files with 13 additions and 1 deletions
  1. 13 1
      go/linguaevalia/Makefile

+ 13 - 1
go/linguaevalia/Makefile

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
lib:
9
lib:
4
	mkdir lib
10
	mkdir lib
22
lib/codemirror.css: lib
28
lib/codemirror.css: lib
23
	curl -o $@ http://codemirror.net/lib/codemirror.css
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
clean:
37
clean:
26
	rm -rf lib
38
	rm -rf lib