summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2012-10-27 18:47:09 +0200
committerMarcel Klehr <mklehr@gmx.net>2012-10-27 18:47:09 +0200
commit7a8401c36382913b4af0f0a0bf791bd4571eaaa3 (patch)
tree197e1b5a27507836137d24705c81c35fd6882ba0 /Makefile
parent3d1fd05085924388f6577a24c9b62ad0b4949661 (diff)
downloadetherpad-lite-7a8401c36382913b4af0f0a0bf791bd4571eaaa3.zip
Add recipe for doc assets and some basic styling for the generated docs.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b6419217..ab720f28 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,15 @@
-doc_dirs = doc $(wildcard doc/*/)
-outdoc_dirs = out $(addprefix out/,$(doc_dirs))
doc_sources = $(wildcard doc/*/*.md) $(wildcard doc/*.md)
outdoc_files = $(addprefix out/,$(doc_sources:.md=.html))
+
+docassets = $(addprefix out/,$(wildcard doc/_assets/*))
+
VERSION = $(shell node -e "console.log( require('./src/package.json').version )")
-docs: $(outdoc_files)
+docs: $(outdoc_files) $(docassets)
+
+out/doc/_assets/%: doc/_assets/%
+ mkdir -p $(@D)
+ cp $< $@
out/doc/%.html: doc/%.md
mkdir -p $(@D)