aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--INSTALL22
-rw-r--r--Makefile88
2 files changed, 93 insertions, 17 deletions
diff --git a/INSTALL b/INSTALL
index d542bd7c51..2966be22f2 100644
--- a/INSTALL
+++ b/INSTALL
@@ -38,22 +38,20 @@ Description
A few features can be used to tweak the install:
- Directory Variables
- To check about all of the directory variables available, compare the
- GNU Coding Standards with the Makefile and the helper makefiles (see
- the sections "Standards" and "Files" below). The most common ones that
- you may use are:
+ Variables
+ There are many variables available with which you can tweak the
+ build system. Most of them are directory variables and command
+ variables, based on the GNU Coding Standards. Others are
+ specially designed for this project. To see all of the available
+ variables, use:
+
+ $ make help-variables
+
+ The most common ones that you may use are:
- DESTDIR
- prefix
- Command Variables
- Some commands use flags. A command named 'command' will have a
- variable COMMAND to specify an alternative command name. To append
- flags to the default ones, set the variable EXTRA_COMMANDFLAGS. To
- overwrite the flags, set the variable COMMANDFLAGS.
-
- Verbose
Use V=1 for a more verbose output from the makefiles:
$ sudo make install V=1
diff --git a/Makefile b/Makefile
index 32639602eb..0b0af87bfe 100644
--- a/Makefile
+++ b/Makefile
@@ -46,8 +46,6 @@ all: build
.PHONY: help
help:
- $(info Targets:)
- $(info )
$(info all Alias for "build")
$(info )
$(info clean Remove $$(builddir))
@@ -104,10 +102,8 @@ help:
$(info dist-xz Create a compressed tarball (.tar.xz))
$(info )
$(info help Print this help)
+ $(info help-variables Print all variables available, and their default values)
$(info )
- $(info Variables:)
- $(info )
- $(info V Define to non-empty string for verbose output)
.SECONDEXPANSION:
@@ -126,5 +122,87 @@ include $(srcdir)/lib/lint-man.mk
include $(srcdir)/lib/verbose.mk
+help-variables:
+ $(info V Define to non-empty string for verbose output)
+ $(info )
+ $(info LINK_PAGES How to install link pages. ["so", "symlink"])
+ $(info Z Install pages compressed. ["", ".gz"])
+ $(info )
+ $(info DISTNAME $$(git describe))
+ $(info DISTVERSION /$$DISTNAME/s/man-pages-//)
+ $(info )
+ $(info # Directory variables:)
+ $(info )
+ $(info builddir tmp)
+ $(info DESTDIR )
+ $(info prefix /usr/local)
+ $(info mandir $$(datarootdir)/man)
+ $(info docdir $$(datarootdir)/doc)
+ $(info )
+ $(info man1dir $$(mandir)/man1)
+ $(info man2dir $$(mandir)/man2)
+ $(info man2typedir $$(mandir)/man2type)
+ $(info man3dir $$(mandir)/man3)
+ $(info man3constdir $$(mandir)/man3const)
+ $(info man3headdir $$(mandir)/man3head)
+ $(info man3typedir $$(mandir)/man3type)
+ $(info man4dir $$(mandir)/man4)
+ $(info man5dir $$(mandir)/man5)
+ $(info man6dir $$(mandir)/man6)
+ $(info man7dir $$(mandir)/man7)
+ $(info man8dir $$(mandir)/man8)
+ $(info )
+ $(info htmldir $$(docdir))
+ $(info htmlext .html)
+ $(info )
+ $(info # Command variables (and flags):)
+ $(info )
+ $(info PRECONV {EXTRA_,}PRECONVFLAGS)
+ $(info TBL)
+ $(info EQN {EXTRA_,}EQNFLAGS)
+ $(info TROFF {EXTRA_,}TROFFFLAGS)
+ $(info GROTTY {EXTRA_,}GROTTYFLAGS)
+ $(info COL {EXTRA_,}COLFLAGS)
+ $(info )
+ $(info MAN)
+ $(info MANDOC {EXTRA_,}MANDOCFLAGS)
+ $(info MAN2HTML {EXTRA_,}MAN2HTMLFLAGS)
+ $(info )
+ $(info ECHO)
+ $(info EXPR)
+ $(info FIND)
+ $(info GIT)
+ $(info GZIP)
+ $(info HEAD)
+ $(info LN)
+ $(info LOCALE)
+ $(info PKGCONF)
+ $(info SED)
+ $(info SORT)
+ $(info SPONGE)
+ $(info TAC)
+ $(info TAIL)
+ $(info TAR)
+ $(info TEST)
+ $(info XARGS)
+ $(info XZ)
+ $(info )
+ $(info INSTALL)
+ $(info INSTALL_DATA)
+ $(info MKDIR)
+ $(info RM)
+ $(info )
+ $(info - {EXTRA_,}CPPFLAGS)
+ $(info CC {EXTRA_,}CFLAGS)
+ $(info LD {EXTRA_,}LDFLAGS {EXTRA_,}LDLIBS)
+ $(info )
+ $(info CHECKPATCH {EXTRA_,}CHECKPATCHFLAGS)
+ $(info CLANG-TIDY {EXTRA_,}CLANG-TIDYFLAGS)
+ $(info CPPCHECK {EXTRA_,}CPPCHECKFLAGS)
+ $(info CPPLINT {EXTRA_,}CPPLINTFLAGS)
+ $(info IWYU {EXTRA_,}IWYUFLAGS)
+ $(info )
+
+
.DELETE_ON_ERROR:
FORCE: