aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authornsfisis <54318333+nsfisis@users.noreply.github.com>2024-01-21 12:24:09 +0900
committerGitHub <noreply@github.com>2024-01-21 12:24:09 +0900
commit89c4d83277dbc6d317c981e4959f452052bb40e7 (patch)
tree662b59912cae62498db828259f38e65ab99ec58d /Makefile
downloadphpstudy-160-slides-89c4d83277dbc6d317c981e4959f452052bb40e7.tar.gz
phpstudy-160-slides-89c4d83277dbc6d317c981e4959f452052bb40e7.tar.zst
phpstudy-160-slides-89c4d83277dbc6d317c981e4959f452052bb40e7.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0a2d6b9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,35 @@
+.PHONY: all
+all: build
+
+# Build slide PDF.
+.PHONY: build
+build: slide.pdf
+
+slide.pdf: slide.saty
+ docker run \
+ --rm \
+ --name satysfi \
+ --mount type=bind,src=$$(pwd),dst=/work \
+ satysfi \
+ satysfi slide.saty
+
+# Enter Docker shell.
+.PHONY: shell
+shell:
+ docker run \
+ -it \
+ --rm \
+ --name satysfi \
+ --mount type=bind,src=$$(pwd),dst=/work \
+ satysfi \
+ sh
+
+# Build Docker container.
+.PHONY: docker
+docker:
+ docker build --tag satysfi .
+
+# Clean all artifacts.
+.PHONY: clean
+clean:
+ rm -f *.pdf *.satysfi-aux