summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorMarc Chantreux <khatar@phear.org>2015-09-15 13:33:29 +0200
committerMarc Chantreux <khatar@phear.org>2015-09-15 13:33:29 +0200
commita457b308c39c90efceda981ddb867ea6f32f3f20 (patch)
tree2ab603458dfe0b7bff8db261afc175059dc5d0b8 /Makefile
downloadspore.github.io-a457b308c39c90efceda981ddb867ea6f32f3f20.tar.gz
examples from eiro.github.com
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d0dbf96
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+# depth is defined in subdirectories as .., ../.. and so on. 
+depth?=.
+include site.mk
+feed= news.html atom.xml unixtips.html unixtips.atom.xml
+
+all: $(basics) $(webpages) theme.css
+
+website: FORCE $(webpages) 
+
+FORCE:
+	perl6 bin/atom atom > atom.xml
+	perl6 bin/atom news > news.md
+	cd posts/2015; make
+
+menu: menu.md.
+	m4 -I$(depth)/m4 post defs render $< | pandoc -t html5 -o $@ 
+
+clean:
+	rm -f menu $(webpages)
+
+%.css: %.styl
+	stylus -c $<
+
+r.html: test_defs.zsh
+	zsh test_defs.zsh > r.tap
+	tapprouve r.tap > r.html
+
+$(keywords_m4): $(depth)/keywords
+	perl bin/m4keys  $< > $@
+	
+.md.html: $(basics)
+	$(htmlify) < $< > $@
+
+snitch:
+	@echo mdpages:  $(mdpages)
+	@echo webpages: $(webpages)