docker/Makefile

33 lines
369 B
Makefile
Raw Permalink Normal View History

2022-06-18 20:58:53 +02:00
# =====CONFIG=====
V_PATH ?= v
V := $(V_PATH) -showcc -d use_openssl
2022-06-18 20:58:53 +02:00
all: vdocker
# =====COMPILATION=====
.PHONY: vdocker
vdocker:
$(V) -g -shared .
.PHONY: c
c:
$(V) -o docker.c .
2022-06-18 20:58:53 +02:00
# =====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 .