Create a (very imperfect) container to run framac
Work woth Makefile
This commit is contained in:
parent
83b5a97914
commit
522bdb0218
4 changed files with 73 additions and 2 deletions
|
@ -19,7 +19,7 @@ build: $(OUTPUT_DIR)/$(pdf_file)
|
|||
|
||||
$(OUTPUT_DIR)/$(pdf_file): $(TEX_FILE)
|
||||
$(shell mkdir -p $(OUTPUT_DIR))
|
||||
lualatex --interaction=nonstopmode --output-directory $(OUTPUT_DIR) $<
|
||||
latexmk -xelatex -output-directory=$(OUTPUT_DIR) $<
|
||||
|
||||
buildall: images build
|
||||
|
||||
|
@ -35,4 +35,15 @@ echo:
|
|||
view: build
|
||||
$(PDF_APP) $(OUTPUT_DIR)/$(pdf_file)
|
||||
|
||||
.PHONY: echo view clean
|
||||
build-container:
|
||||
podman build . -t framac
|
||||
|
||||
framac:
|
||||
podman run -it --rm \
|
||||
--volume=/tmp/.X11-unix/:/tmp/.X11-unix/ \
|
||||
--volume=./code/:/data \
|
||||
--userns "keep-id:uid=9000,gid=9000" \
|
||||
-e DISPLAY=$$DISPLAY \
|
||||
--entrypoint=/bin/bash framac
|
||||
|
||||
.PHONY: echo view clean build-container framac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue