+M=$(wildcard *.md)
+H=$(patsubst %.md,%.html,$M)
+
+all: $H
+
+%.html: %.md
+ markdown $< >$@
+
view:
xdg-open index.html
-publish:
+publish: all
@git diff-index --quiet HEAD -- && test -z "$(git ls-files --others)" || ( \
1>&2 echo "Index is dirty or there are uncommitted files!"; \
git status; \
git archive --format=tgz HEAD \
| ssh root@thefekete.net "cd /var/www/thefekete.net && tar zxvf -"
-.PHONY: publish view
+clean:
+ rm -f $H
+
+.PHONY: all publish view clean
+++ /dev/null
-<h1>TheFekete's Net</h1>
-
-<p>This is the first of many sentences.</p>
-
-<img src="img/trogdor.png" />