diff --git a/Makefile b/Makefile index a873221..02656b1 100644 --- a/Makefile +++ b/Makefile @@ -8,11 +8,11 @@ STYLES := styles.css WEASYPRINT := weasyprint -s $(STYLES) portfolio: - @mkdir -p generated - @$(CURL) $(PORTFOLIO) | $(PANDOC) \ + @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 + --output $(GENERATED_DIR)/portfolio.html && \ + $(WEASYPRINT) --presentational-hints $(GENERATED_DIR)/portfolio.html $(GENERATED_DIR)/portfolio.pdf diff --git a/header.html b/header.html index 6106878..2a48843 100644 --- a/header.html +++ b/header.html @@ -1,5 +1,10 @@