Created
July 22, 2024 06:35
-
-
Save weygoldt/ec5ae525bb34097e93572fb761a1a44a to your computer and use it in GitHub Desktop.
A simple makefile for quarto presentations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| QUARTO_SOURCE = slides.qmd | |
| QUARTO_OUTPUT = slides.html | |
| AUX_FILES = slides_files | |
| .PHONY: all watch clean | |
| all: $(QUARTO_OUTPUT) | |
| $(QUARTO_OUTPUT): $(QUARTO_SOURCE) | |
| quarto render $(QUARTO_SOURCE) --output=$(QUARTO_OUTPUT) | |
| watch: | |
| @while true; do \ | |
| make -q || make; \ | |
| sleep 0.5; \ | |
| done | |
| clean: | |
| rm -rf $(QUARTO_OUTPUT) | |
| rm -rf $(AUX_FILES) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment