Skip to content
Snippets Groups Projects
Commit e8cbeebd authored by Florent Gluck's avatar Florent Gluck
Browse files

updated lab.mk

parent 9ec90986
No related branches found
No related tags found
No related merge requests found
SRCS=$(wildcard *.md)
PDFS=$(SRCS:%.md=%.pdf)
PDFS_CORR=$(SRCS:%.md=%_corr.pdf)
UID=$(shell id -u)
GID=$(shell id -g)
all: doc
doc: $(PDFS)
corr: $(PDFS_CORR)
all: $(PDFS)
%.pdf: %.md
docker run --user $(UID):$(GID) --rm --mount type=bind,src="$(PWD)",dst=/src thxbb12/md2pdf build_lab $<
%_corr.pdf: %.md
docker run --user $(UID):$(GID) --rm --mount type=bind,src="$(PWD)",dst=/src thxbb12/md2pdf build_lab_corr $<
clean:
rm -f $(PDFS) $(PDFS_CORR)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment