This commit is contained in:
Thomas Baruchel 2023-01-04 17:04:31 +01:00
parent 1e45967596
commit 3c38a2dfd9
2 changed files with 26 additions and 0 deletions

26
Makefile Normal file
View File

@ -0,0 +1,26 @@
# Generate HTMLs from the Coq source files
# Directory containing source (Coq) files
source := ./src
# Directory containing pdf files
output := ./html
# All Coq files in src/ are considered sources
sources := $(wildcard $(source)/*.v)
# Convert the list of source files (Coq files in directory .)
# into a list of output files (HTMLs in directory ./html).
objects := $(patsubst %.v,%.html,$(subst $(source),$(output),$(sources)))
all: $(objects)
# Recipe for converting a Coq file into HTML using coqdoc
$(output)/%.html: $(source)/%.v
coqc $<
coqdoc --html --no-index -d ./html/ $<
.PHONY : clean
clean:
rm -f $(output)/*.html $(output)/*.css