diff options
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/ |