Changeset 3:ef8b527073fb

Updated permissions and makefile
author unexist
date Mon, 01 Mar 2021 11:15:43 +0100
parents 4487efacc5a0
children 5bfe95145671
files Makefile pom.xml
diffstat 1 files changed, 29 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Feb 28 13:57:24 2021 +0100
+++ b/Makefile	Mon Mar 01 11:15:43 2021 +0100
@@ -1,28 +1,46 @@
 help:
 	@echo
+	@echo "***********************************************************"
+	@echo "*                                                         *"
+	@echo "*  Generate documentation locally:                        *"
+	@echo "*                                                         *"
+	@echo "*  make docs                                              *"
+	@echo "*                                                         *"
+	@echo "**********************************************************"
+	@echo
+
+# Docs
+PDFOUT := Template.pdf
+HTMLOUT := index.html
+
+pdf:
+	asciidoctor-pdf src/main/asciidoc/index.adoc -D . -o $(PDFOUT) -a imagesdir=images
+
+	@echo
 	@echo "******************************************************"
 	@echo "*                                                    *"
-	@echo "*  Generate documentation locally:                   *"
-	@echo "*                                                    *"
-	@echo "*  make docs                                         *"
+	@echo "* Documentation can be found here:                   *"
+	@echo "* $(PDFOUT)                                          *"
 	@echo "*                                                    *"
 	@echo "******************************************************"
 	@echo
 
-# Docs
+open-pdf:
+	open $(PDFOUT)
+
 open:
-	open ./target/static/documentation/index.html
+	open ./target/static/documentation/$(HTMLOUT)
 
 .DEFAULT_GOAL := docs
 docs:
 	@mvn -f pom.xml clean generate-resources
 
 	@echo
-	@echo "******************************************************"
-	@echo "*                                                    *"
-	@echo "* Documentation can be found here:                   *"
-	@echo "* ./target/static/documentation/index.html           *"
-	@echo "*                                                    *"
-	@echo "******************************************************"
+	@echo "**********************************************************"
+	@echo "*                                                        *"
+	@echo "* Documentation can be found here:                       *"
+	@echo "* ./target/static/documentation/$(HTMLOUT) *"
+	@echo "*                                                        *"
+	@echo "**********************************************************"
 	@echo