Skip to content

Instantly share code, notes, and snippets.

@weygoldt
Created July 22, 2024 06:35
Show Gist options
  • Select an option

  • Save weygoldt/ec5ae525bb34097e93572fb761a1a44a to your computer and use it in GitHub Desktop.

Select an option

Save weygoldt/ec5ae525bb34097e93572fb761a1a44a to your computer and use it in GitHub Desktop.
A simple makefile for quarto presentations.
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