Skip to content
Snippets Groups Projects
Verified Commit 6c29a0d1 authored by Jens Heidbüchel's avatar Jens Heidbüchel
Browse files

Use generic Makefile

parent 9e137f75
No related branches found
No related tags found
No related merge requests found
Pipeline #89220 passed
......@@ -2,7 +2,7 @@ build:
image: jugit-registry.fz-juelich.de/docker-images/gitlabci-sphinx
stage: build
script:
- make -f Makefile.ci
- make
artifacts:
paths:
- gitlab-kurs.pdf
......
......@@ -12,19 +12,31 @@ MAIN := gitlab-kurs
all: $(MAIN).pdf
$(MAIN).pdf: $(MAIN).tex
$(CE) run --rm -it -v $(shell pwd):/work -w /work $(BUILD_IMAGE) \
latexmk $(MAIN).tex
if ! test -f "/.dockerenv" && ! test -f "/run/.containerenv"; then \
$(CE) run --rm -it -v $(shell pwd):/work -w /work $(BUILD_IMAGE) \
latexmk $(MAIN).tex; \
else \
latexmk $(MAIN).tex; \
fi
view: $(MAIN).pdf
open $(MAIN).pdf
clean:
$(CE) run --rm -it -v $(shell pwd):/work -w /work $(BUILD_IMAGE) \
latexmk -c
if ! test -f "/.dockerenv" && ! test -f "/run/.containerenv"; then \
$(CE) run --rm -it -v $(shell pwd):/work -w /work $(BUILD_IMAGE) \
latexmk -c; \
else \
latexmk -c; \
fi
cleanall:
$(CE) run --rm -it -v $(shell pwd):/work -w /work $(BUILD_IMAGE) \
latexmk -C
if ! test -f "/.dockerenv" && ! test -f "/run/.containerenv"; then \
$(CE) run --rm -it -v $(shell pwd):/work -w /work $(BUILD_IMAGE) \
latexmk -C; \
else \
latexmk -C; \
fi
edit: up
ssh -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \
......
MAIN := gitlab-kurs
all: $(MAIN).pdf
$(MAIN).pdf: $(MAIN).tex
latexmk $(MAIN).tex
clean:
latexmk -c
cleanall:
latexmk -C
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment