forked from AlexKontorovich/PrimeNumberTheoremAnd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (24 loc) · 721 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
LAKEBIN=lake
PROJECT=PrimeNumberTheoremAnd
FILES=$(basename $(notdir $(wildcard $(PROJECT)/*.lean)))
BLUEPRINTS=$(addsuffix .tex, $(addprefix blueprint/, $(FILES)))
BLUEPRINT_FILE=blueprint/blueprint.tex
build:
$(LAKEBIN) update
$(LAKEBIN) exe cache get
$(LAKEBIN) build
doc: .lake/packages/doc-gen4
$(LAKEBIN) -R -Kenv=dev build $(PROJECT):docs
.lake/packages/doc-gen4:
$(LAKEBIN) -R -Kenv=dev update
clean-doc:
rm -rf .lake/build/doc/*
blueprint: clean-blueprint
python3 leanblueprint-extract/extract_blueprint -O blueprint $(PROJECT)/*.lean
make -C blueprint
make -C blueprint clean-aux
clean-blueprint:
mkdir -p blueprint
rm -f $(BLUEPRINTS)
make -C blueprint clean
clean: clean-doc clean-blueprint