diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-28 19:52:57 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-28 19:52:57 +0200 |
commit | fbdcb607cd4d8f640240bdc2db74d224efb68705 (patch) | |
tree | bc9a30ae4f260ee04f102003c7615b00e2dc58cf | |
parent | E-mail -> Email (diff) | |
download | cv-fbdcb607cd4d8f640240bdc2db74d224efb68705.tar.gz cv-fbdcb607cd4d8f640240bdc2db74d224efb68705.zip |
Makefile: add more utility rules
-rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 |