Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mtg@gnu.org>2015-05-16 02:00:03 -0400
committerMike Gerwitz <mtg@gnu.org>2015-05-16 02:00:03 -0400
commit508981884a9edc82e65452d911e36b416acb49ca (patch)
tree538e068195c09c0df9be8c2cecb575256016c565 /Makefile
parent6b42aef7a160f4a993d2908e9a915572ede89570 (diff)
downloadthoughts-508981884a9edc82e65452d911e36b416acb49ca.tar.gz
thoughts-508981884a9edc82e65452d911e36b416acb49ca.tar.bz2
thoughts-508981884a9edc82e65452d911e36b416acb49ca.zip
Markdown support for pages
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f12efb5..4621042 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,9 @@
# #
pages := $(patsubst %.pg, %.html, \
- $(shell find docs/ -name '*.pg'))
+ $(shell find docs/ -name '*.pg'))
+pages_md := $(patsubst %.md, %.html, \
+ $(shell find docs/ -name '*.md'))
articles := $(patsubst %.txt, %.html, \
$(shell find docs/ -maxdepth 2 -name '*.txt'))
# articles in TeX with an inappropriate var name
@@ -64,6 +66,8 @@ thoughts:
# "pages"
%.html: %.pg docs/papers/.list
$(repo2html) -icontent -ftools/extfmt <$< >$@
+%.html: %.md
+ $(repo2html) -icontent -ftools/mdfmt <$< >$@
# TeX papers are expected to have their own makefiles as well as an abstract.tex
%.html: coope/%.tex
@@ -73,7 +77,7 @@ thoughts:
docs/papers/.list: thoughts articles
echo "$(articles) $(texticles)" | tr ' ' '\n' | tools/doclist >$@
-pages: $(pages)
+pages: $(pages) $(pages_md)
articles: $(articles) $(texticles)
docs: pages articles
www-root: docs thoughts