Browse Source

build: Add 'push-gh-pages' target to Makefile

This allows you to automatically push new documentation.
Ole 9 years ago
parent
commit
af90489e4f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Makefile

+ 5 - 0
Makefile

@@ -39,6 +39,11 @@ docs:
 	mkdocs build --clean
 	mkdocs build --clean
 	doxygen
 	doxygen
 
 
+push-gh-pages: docs
+	git add docs/output
+	git commit -m "docs: Automated update $$(date)"
+	git subtree push --prefix docs/output origin gh-pages
+
 # Tests
 # Tests
 test: $(TEST_OUT)
 test: $(TEST_OUT)
 	./$(TEST_OUT)
 	./$(TEST_OUT)