diff options
author | 53hornet <53hornet@gmail.com> | 2018-12-29 15:41:31 -0500 |
---|---|---|
committer | 53hornet <53hornet@gmail.com> | 2018-12-29 15:41:31 -0500 |
commit | f11cd7a5b00e76af7ffe76ec5a51fa557464ed0c (patch) | |
tree | 31aa499d45cc4620dd562e6abbc0b170d8a67d41 /makefile | |
parent | 3bc53ff6f3bc338d04b60b8c6f9448c9b59c7a12 (diff) | |
download | md-site-f11cd7a5b00e76af7ffe76ec5a51fa557464ed0c.tar.xz md-site-f11cd7a5b00e76af7ffe76ec5a51fa557464ed0c.zip |
Added brunch invite pdf
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -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/ |