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

Added lab.mk

parent b121b3f2
Branches master
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