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

updated lab.mk

parent 6d000748
Branches
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)
doc: $(PDFS)
corr: $(PDFS_CORR)
all: doc corr
%.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