switches to markdown
authorDaniel <thefekete@gmail.com>
Tue, 23 Jun 2020 00:14:25 +0000 (02:14 +0200)
committerDaniel <thefekete@gmail.com>
Tue, 23 Jun 2020 00:16:20 +0000 (02:16 +0200)
.gitignore
Makefile
index.html [deleted file]
index.md [new file with mode: 0644]

index e69de29..0b84df0 100644 (file)
@@ -0,0 +1 @@
+*.html
\ No newline at end of file
index 8b9558d..a2f747b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,15 @@
+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; \
@@ -10,4 +18,7 @@ publish:
        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
diff --git a/index.html b/index.html
deleted file mode 100644 (file)
index 515c9e8..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<h1>TheFekete's Net</h1>
-
-<p>This is the first of many sentences.</p>
-
-<img src="img/trogdor.png" />
diff --git a/index.md b/index.md
new file mode 100644 (file)
index 0000000..fa14fac
--- /dev/null
+++ b/index.md
@@ -0,0 +1,5 @@
+# The Fekete's Net
+
+This is the first sentence.
+
+![Trogdor](img/trogdor.png)