diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-01-20 02:23:13 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-01-20 02:23:13 +0900 |
| commit | 6a4373396f4fcb9287e20588c236b7346c7e8065 (patch) | |
| tree | 607c863bd60c3d73e4aa3bc629a8521f3bbb38c4 /Makefile | |
| parent | 9dc12950f45e69e4d74976b6d90046e6845d43ef (diff) | |
| download | phpstudy-N-slides-template-6a4373396f4fcb9287e20588c236b7346c7e8065.tar.gz phpstudy-N-slides-template-6a4373396f4fcb9287e20588c236b7346c7e8065.tar.zst phpstudy-N-slides-template-6a4373396f4fcb9287e20588c236b7346c7e8065.zip | |
use local `satysfi` exe
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -1,3 +1,5 @@ +SATYSFI_BIN := satysfi + .PHONY: all all: build @@ -6,12 +8,7 @@ all: build build: slide.pdf slide.pdf: slide.saty - docker run \ - --rm \ - --name satysfi \ - --mount type=bind,src=$$(pwd),dst=/work \ - satysfi \ - sh -c "satysfi slide.saty && chown "$$(id -u):$$(id -g)" slide.pdf slide.satysfi-aux" + $(SATYSFI_BIN) $^ # Enter Docker shell. .PHONY: shell @@ -20,7 +17,6 @@ shell: -it \ --rm \ --name satysfi \ - --mount type=bind,src=$$(pwd),dst=/work \ satysfi \ sh @@ -29,6 +25,14 @@ shell: docker: docker build --tag satysfi . +# Install dependencies. +.PHONY: deps +deps: + rm -rf .satysfi + docker create --name satysfi-tmp satysfi + docker cp -L satysfi-tmp:/root/.satysfi .satysfi + docker rm satysfi-tmp + # Clean all artifacts. .PHONY: clean clean: |
