Verified Commit 3addd1bf authored by Martin Isaksson's avatar Martin Isaksson
Browse files

Updates to Makefile

parent 8890a5ca
......@@ -6,7 +6,7 @@ LATEXMK_OPTIONS=-bibtex -pdf -pdflatex="pdflatex -interaction=nonstopmode"
DOCKER=docker
DOCKER_IMAGE=martisak/reproducibleresearch
DOCKER_COMMAND=run --rm --env LATEXMK_OPTIONS_EXTRA=$(LATEXMK_OPTIONS_EXTRA)
DOCKER_COMMAND=run --rm -w /data/ --env LATEXMK_OPTIONS_EXTRA=$(LATEXMK_OPTIONS_EXTRA)
DOCKER_MOUNT=-v`pwd`:/data
all: render
......@@ -26,7 +26,7 @@ dist-clean: clean
render:
$(DOCKER) $(DOCKER_COMMAND) $(DOCKER_MOUNT) $(DOCKER_IMAGE) \
make -C /data pdf
make pdf
check: $(PDF_OBJECTS)
......@@ -37,11 +37,15 @@ check: $(PDF_OBJECTS)
rspec spec/pdf_spec.rb
figures:
$(DOCKER) $(DOCKER_COMMAND) $(DOCKER_MOUNT) $(DOCKER_IMAGE) \
$(DOCKER) $(DOCKER_COMMAND) $(DOCKER_MOUNT) python:3.8 \
make -C /data/figures
debug:
$(DOCKER) $(DOCKER_COMMAND) -it $(DOCKER_MOUNT) $(DOCKER_IMAGE) \
bash
check_docker: render
$(DOCKER) $(DOCKER_COMMAND) -it $(DOCKER_MOUNT) ruby:2.7.1 \
bundle update --bundler; make check
.PHONY: figures
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment