From 1eb65c28a0c54c3aa50cb8e4721943d3909045a5 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Tue, 14 Nov 2023 18:57:44 +0200 Subject: [PATCH] Add help to Makefile --- Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d25f3fe..895d8a5 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,19 @@ -.PHONY: build clean update-npmjs-readme release publish +.PHONY: help build clean update-npmjs-readme release publish -build: node_modules - npm run build +help: + @echo "Available targets:" + @echo " - help: Show this help message" + @echo " - build: Build the project" + @echo " - clean: Remove build artifacts" + @echo " - release: Create a new release version" + @echo " - publish: Publish the new version created with the release target" node_modules: npm install +build: node_modules + npm run build + clean: rm -r target node_modules @@ -14,7 +22,6 @@ release: version=$$(npm version $$bump | grep -oP "(?<=v)[^']+") && \ echo "Version $$version created. Run 'make publish' to push the changes and publish the package." - update-npmjs-readme: asciidoctor -b docbook -o target/README.xml README.adoc pandoc -f docbook -t markdown_strict target/README.xml -o README.md