From f11cd7a5b00e76af7ffe76ec5a51fa557464ed0c Mon Sep 17 00:00:00 2001 From: 53hornet <53hornet@gmail.com> Date: Sat, 29 Dec 2018 15:41:31 -0500 Subject: Added brunch invite pdf --- makefile | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'makefile') diff --git a/makefile b/makefile index 0a3af0b..c42b94d 100644 --- a/makefile +++ b/makefile @@ -2,17 +2,28 @@ MD = $(shell find md/ -type f -name '*.md') CSS = $(shell find md/ -type f -name '*.css') JPG = $(shell find md/ -type f -name '*.jpg') PNG = $(shell find md/ -type f -name '*.png') +PDF = $(shell find md/ -type f -name '*.pdf') CSS_OUT = $(patsubst md/%.css, html/%.css, $(CSS)) JPG_OUT = $(patsubst md/%.jpg, html/%.jpg, $(JPG)) PNG_OUT = $(patsubst md/%.png, html/%.png, $(PNG)) +PDF_OUT = $(patsubst md/%.pdf, html/%.pdf, $(PDF)) 53HORNET_OUT = $(patsubst md/53hor.net/%.md, html/53hor.net/%.html, $(MD)) ATC_OUT = $(patsubst md/atc.53hor.net/%.md, html/atc.53hor.net/%.html, $(MD)) WED_OUT = $(patsubst md/wedding/%.md, html/wedding/%.html, $(MD)) +GLASSY_OUT = $(patsubst md/theglassyladies.com/%.md, html/theglassyladies.com/%.html, $(MD)) .PHONY: all -all: css img 53hor.net atc.53hor.net wedding +all: css img pdf 53hor.net atc.53hor.net wedding theglassyladies.com + +.PHONY: pdf +pdf: $(PDF_OUT) + +html/%.pdf: md/%.pdf + @echo "pdf: $< -> $@" + @mkdir -p "$(@D)" + @cp "$<" "$@" .PHONY: css css: $(CSS_OUT) @@ -59,5 +70,13 @@ html/wedding/%.html: md/wedding/%.md md/wedding/nav.html @mkdir -p "$(@D)" @pandoc "$<" -f markdown -t html5 -s -B md/wedding/nav.html -c /styles.css -o "$@" +.PHONY: theglassyladies.com +theglassyladies.com: $(GLASSY_OUT) + +html/theglassyladies.com/%.html: md/theglassyladies.com/%.md md/theglassyladies.com/nav.html + @echo "theglassyladies.com: $< -> $@" + @mkdir -p "$(@D)" + @pandoc "$<" -f markdown -t html5 -s -B md/theglassyladies.com/nav.html -c /styles.css -o "$@" + clean: @rm -rf html/ -- cgit v1.2.3