summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/makefile b/makefile
index d483992..c3c1bc8 100644
--- a/makefile
+++ b/makefile
@@ -3,11 +3,13 @@ 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')
+HTML = $(shell find md/ -type f -name '*.html')
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))
+HTML_OUT = $(patsubst md/%.html, html/%.html, $(HTML))
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))
@@ -15,7 +17,15 @@ WED_OUT = $(patsubst md/amyandadamwedd.in/%.md, html/amyandadamwedd.in/%.html, $
GLASSY_OUT = $(patsubst md/theglassyladies.com/%.md, html/theglassyladies.com/%.html, $(MD))
.PHONY: all
-all: css img pdf 53hor.net atc.53hor.net amyandadamwedd.in theglassyladies.com
+all: css img pdf html 53hor.net atc.53hor.net amyandadamwedd.in theglassyladies.com
+
+.PHONY: html
+html: $(HTML_OUT)
+
+html/%.html: md/%.html
+ @echo "html: $< -> $@"
+ @mkdir -p "$(@D)"
+ @cp "$<" "$@"
.PHONY: pdf
pdf: $(PDF_OUT)