From bc9f098d5e2645d8b06534a2884fb20fd8b187bf Mon Sep 17 00:00:00 2001 From: 53hornet <53hornet@gmail.com> Date: Sat, 16 Mar 2019 13:04:05 -0400 Subject: updated makefile --- makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3