Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (20 sloc) 0.603 kb
include ../umbrella.mk
# From the old build system:
# RUNTIME_DEPS=rabbitmq-mochiweb
MARKDOWN_SOURCES=$(wildcard doc/*.md)
MARKDOWN_TARGETS=$(patsubst doc/%.md,doc/html/%.html,$(MARKDOWN_SOURCES))
docs: html-docs
html-docs: doc/html $(MARKDOWN_TARGETS)
doc/html:
mkdir -p doc/html
doc/html/%.html: doc/%.md
(title=`grep '^# ' $< | head -1 | sed -e 's:^# ::'` ;\
t=/tmp/$*.md ;\
sed -e "s:@TITLE@:$$title:g" < doc/header.html > $@ ;\
python doc/buildtoc.py < $< > $$t ;\
markdown $$t >> $@ ;\
rm $$t ;\
cat doc/footer.html >> $@)
clean-docs: clean-html
clean-html:
rm -rf doc/html
Jump to Line
Something went wrong with that request. Please try again.