makefile docs + added version target...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-11-27 12:54:27 +03:00
parent df1c389333
commit 207623b3b5

View File

@ -326,6 +326,8 @@ DEPENDENCIES = $(DEPENDENCIES_WEB) \
#********************************************************************** #**********************************************************************
### Help and info...
# help generator... # help generator...
# #
# Help syntax: # Help syntax:
@ -335,6 +337,7 @@ DEPENDENCIES = $(DEPENDENCIES_WEB) \
# "##----- Section title ---" # "##----- Section title ---"
# #
.PHONY: help .PHONY: help
help: ## Print make target help and exit
help: help:
@IFS=$$'\n' ; \ @IFS=$$'\n' ; \
help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) \ help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) \
@ -372,6 +375,16 @@ doc/MAKE: Makefile
} | egrep -v "^make\[1\]:" > $@ } | egrep -v "^make\[1\]:" > $@
.PHONY: version
version: ## Print version and exit
version:
@echo $(VERSION)
# XXX might be a good idea to print the generated env...
#env:
#********************************************************************** #**********************************************************************
### Dependency checking... ### Dependency checking...