-
-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (18 loc) · 564 Bytes
/
Makefile
File metadata and controls
22 lines (18 loc) · 564 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
TESTARGS ?=--hide-successes --ansi-tricks=false
CABALOPTS ?=--disable-optimization -fexecutable
test:
cabal build $(CABALOPTS) --enable-tests
cabal test $(CABALOPTS) --test-options="$(TESTARGS)"
.PHONY: test
server:
cabal install exe:texmath-server -fserver --installdir . --install-method=copy --overwrite-policy=always
sudo service texmath stop && \
sudo cp texmath-server /usr/local/bin/texmath-server && \
sudo service texmath start
.PHONY: server
binpath:
@cabal list-bin -v0 $(CABALOPTS) texmath
.PHONY: binpath
clean:
cabal clean
.PHONY: clean