CONTAINER := debian:weasyprint CURL := curl -sSL PANDOC := pandoc GENERATED_DIR := generated HEADER := header.html PORTFOLIO := https://pad.vvvvvvaria.org/solitude.portfolio/export/txt STYLES := styles.css WEASYPRINT := weasyprint -s $(STYLES) portfolio: @mkdir -p generated && \ $(CURL) $(PORTFOLIO) | $(PANDOC) \ --read markdown \ --write html \ --standalone \ --include-in-header $(HEADER) \ --output $(GENERATED_DIR)/portfolio.html && \ $(WEASYPRINT) --presentational-hints $(GENERATED_DIR)/portfolio.html $(GENERATED_DIR)/portfolio.pdf