summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author53hornet <53hornet@gmail.com>2019-03-16 13:04:05 -0400
committer53hornet <53hornet@gmail.com>2019-03-16 13:04:05 -0400
commitbc9f098d5e2645d8b06534a2884fb20fd8b187bf (patch)
tree56d74f42e2d547d3401183ca559cb27037ef4fb9
parent514da1796ca38c274bcc107ad3d903f8c0479c29 (diff)
downloadmd-site-bc9f098d5e2645d8b06534a2884fb20fd8b187bf.tar.xz
md-site-bc9f098d5e2645d8b06534a2884fb20fd8b187bf.zip
updated makefile
-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)