aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-28 19:52:57 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-28 19:52:57 +0200
commitfbdcb607cd4d8f640240bdc2db74d224efb68705 (patch)
treebc9a30ae4f260ee04f102003c7615b00e2dc58cf /Makefile
parentE-mail -> Email (diff)
downloadcv-fbdcb607cd4d8f640240bdc2db74d224efb68705.tar.gz
cv-fbdcb607cd4d8f640240bdc2db74d224efb68705.zip
Makefile: add more utility rules
Diffstat (limited to '')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 319d021..58355ca 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,14 @@ pdf := $(name)/$(name).pdf
DO:
.PHONY: all
-all: $(pdf)
+all: build
+
+.PHONY: build
+build: $(pdf)
+
+.PHONY: build/docker
+build/docker:
+ docker-compose run --rm build
$(pdf): $(name).tex img/face2020_warm.jpg | $(name)/
pdflatex -interaction=nonstopmode -halt-on-error '-output-directory=$(call escape,$(name))/' '$(call escape,$<)'
@@ -38,6 +45,10 @@ $(pdf): $(name).tex img/face2020_warm.jpg | $(name)/
%/:
$(MKDIR) '$(call escape,$@)'
+.PHONY: view
+view:
+ xdg-open '$(call escape,$(pdf))' &> /dev/null
+
.PHONY: clean
clean:
find '$(call escape,$(name))' '!' -name cv.pdf -type f -delete