29 lines
308 B
Makefile
29 lines
308 B
Makefile
|
# =====CONFIG=====
|
||
|
V_PATH ?= v
|
||
|
V := $(V_PATH) -showcc
|
||
|
|
||
|
all: aur
|
||
|
|
||
|
|
||
|
# =====COMPILATION=====
|
||
|
.PHONY: aur
|
||
|
aur:
|
||
|
$(V) -g -shared .
|
||
|
|
||
|
|
||
|
# =====DOCS=====
|
||
|
.PHONY: api-docs
|
||
|
api-docs:
|
||
|
rm -rf '_docs'
|
||
|
v doc -f html -m -readme .
|
||
|
|
||
|
|
||
|
# =====OTHER=====
|
||
|
.PHONY: lint
|
||
|
lint:
|
||
|
$(V) fmt -verify .
|
||
|
|
||
|
.PHONY: fmt
|
||
|
fmt:
|
||
|
$(V) fmt -w .
|