adds view make target
authorDaniel <thefekete@gmail.com>
Mon, 22 Jun 2020 23:58:46 +0000 (01:58 +0200)
committerDaniel <thefekete@gmail.com>
Mon, 22 Jun 2020 23:58:46 +0000 (01:58 +0200)
Makefile

index 3263c27..8b9558d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
-.PHONY: publish
+view:
+       xdg-open index.html
+
 publish:
        @git diff-index --quiet HEAD -- && test -z "$(git ls-files --others)" || ( \
                1>&2 echo "Index is dirty or there are uncommitted files!"; \
@@ -7,3 +9,5 @@ publish:
        )
        git archive --format=tgz HEAD \
                | ssh root@thefekete.net "cd /var/www/thefekete.net && tar zxvf -"
+
+.PHONY: publish view