Add an initial version of a 'help' target

This commit is contained in:
Thomas Trepl (Moody) 2021-07-17 13:44:23 +02:00
parent cf8a147ef3
commit 820b6d763a

View File

@ -49,6 +49,52 @@ endif
blfs: html wget-list
help:
@echo ""
@echo "make <parameters> <targets>"
@echo ""
@echo "Parameters:"
@echo " REV=<rev> Build variation of book"
@echo " Valid values for REV are:"
@echo " * sysv - Build book for SysV"
@echo " * systemd - Build book for systemd"
@echo " Defaults to 'sysv'"
@echo ""
@echo " BASEDIR=<dir> Put the output in directory <dir>."
@echo " Defaults to"
@echo " 'HOME/public_html/blfs-book' if REV=sysv (or unset)"
@echo " or to"
@echo " 'HOME/public_html/blfs-book-systemd' if REV=systemd"
@echo ""
@echo " V=<val> If <val> is a non-empty value, all"
@echo " steps to produce the output is shown."
@echo " Default is unset."
@echo ""
@echo "Targets:"
@echo " help Show this help text."
@echo ""
@echo " blfs Builds targets 'html' and 'wget-list'."
@echo ""
@echo " html Builds the HTML pages of the book."
@echo ""
@echo " wget-list Produces a list of all packages to download."
@echo " Output is BASEDIR/wget-list"
@echo ""
@echo " nochunks Builds the book as a one-pager. The output"
@echo " is a large single HTML page containing the"
@echo " whole book."
@echo ""
@echo " Parameter NOCHUNKS_OUTPUT=<filename> controls"
@echo " the name of the HTML file."
@echo ""
@echo " validate Runs validation checks on the XML files."
@echo ""
@echo " test-links Runs validation checks on URLs in the book."
@echo " Produces a file named BASEDIR/bad_urls containing"
@echo " URLS which are invalid and a BASEDIR/good_urls"
@echo " containing all valid URLs."
@echo ""
all: blfs nochunks
world: all blfs-patch-list dump-commands test-links