Update for generating help
This commit is contained in:
parent
d7eb75336a
commit
f212a23b18
15
Makefile
15
Makefile
@ -1,9 +1,9 @@
|
||||
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-#
|
||||
#
|
||||
# Manage website building
|
||||
#
|
||||
# Andrew Stryker <axs@sdf.org>
|
||||
#
|
||||
#> Manage building Hugo website
|
||||
#>
|
||||
#> Andrew Stryker <axs@sdf.org>
|
||||
#>
|
||||
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-#
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
@ -15,6 +15,8 @@
|
||||
DEST ?= axs@sdf.org:html
|
||||
SITE_URL ?= https://axs.sdf.org
|
||||
|
||||
help_generator = generate-help.awk
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
#
|
||||
# Define user interface
|
||||
@ -25,7 +27,7 @@ SITE_URL ?= https://axs.sdf.org
|
||||
|
||||
default: build
|
||||
|
||||
build: .build_sentinel #>
|
||||
build: .build_sentinel #> Build site with Hugo (default)
|
||||
|
||||
publish: build #> Publish site
|
||||
@echo "📰Publishing..."
|
||||
@ -53,6 +55,9 @@ publish: build #> Publish site
|
||||
@echo "✓ Publising complete"
|
||||
@echo "\nThe site should be available on ${SITE_URL}"
|
||||
|
||||
help: #> Generate this help message
|
||||
@gawk -f ${help_generator} $(MAKEFILE_LIST)
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
#
|
||||
# Define file interface
|
||||
|
Loading…
Reference in New Issue
Block a user