summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
author53hornet <53hornet@gmail.com>2018-09-03 07:55:16 -0400
committer53hornet <53hornet@gmail.com>2018-09-03 07:55:16 -0400
commit2f0780b82f507bfb7958ec2bc6aa188cac677c09 (patch)
tree9ddbe603a7b94387b42c28d514b7899f97050fc0 /makefile
parentef70b6074baefb3120a2d6740d0f82230191b234 (diff)
downloadmd-site-2f0780b82f507bfb7958ec2bc6aa188cac677c09.tar.xz
md-site-2f0780b82f507bfb7958ec2bc6aa188cac677c09.zip
Added basic wedding site structure
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/makefile b/makefile
index 386f151..74435b6 100644
--- a/makefile
+++ b/makefile
@@ -6,11 +6,13 @@ PNG = $(shell find md/ -type f -name '*.png')
CSS_OUT = $(patsubst md/%.css, html/%.css, $(CSS))
JPG_OUT = $(patsubst md/%.jpg, html/%.jpg, $(JPG))
PNG_OUT = $(patsubst md/%.png, html/%.png, $(PNG))
+
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))
.PHONY: all
-all: css img 53hor.net atc.53hor.net alsplusatc.net
+all: css img 53hor.net atc.53hor.net wedding
.PHONY: css
css: $(CSS_OUT)
@@ -49,5 +51,13 @@ html/atc.53hor.net/%.html: md/atc.53hor.net/%.md md/atc.53hor.net/nav.html
@mkdir -p "$(@D)"
@pandoc "$<" -f markdown -t html5 -s --toc --toc-depth=3 -B md/atc.53hor.net/nav.html -c /styles.css -o "$@"
+.PHONY: wedding
+wedding: $(WED_OUT)
+
+html/wedding/%.html: md/wedding/%.md md/wedding/nav.html
+ @echo "wedding: $< -> $@"
+ @mkdir -p "$(@D)"
+ @pandoc "$<" -f markdown -t html5 -s -B md/wedding/nav.html -c /styles.css -o "$@"
+
clean:
@rm -rf html/