all:
clean::
check::
-.PHONY: all clean check
+help::
+.PHONY: all clean check help
.SECONDEXPANSION: #sorry
###--------------------------------------------------------------------------
CONFIG_VARS =
+help::
+ @echo "Configuration variables"
+
## Make verbosity.
V = 0
+help::; @echo " V build verbosity"
## Level of pickiness to aspire to.
NOTIFY_FATAL = 1
+help::
+ @echo " NOTIFY_FATAL report fatal error on ..." && \
+ echo " 1 = error" && \
+ echo " 2 = warning" && \
+ echo " 3 = info"
## Volume group from which to allocate chroot volumes and snapshots.
CONFIG_VARS += VG LVPREFIX
## A directory in which we can maintain private files and state.
CONFIG_VARS += STATE
STATE = state
+help::; @echo " STATE directory for state files"
## A directory which will be spliced into chroots as `/usr/local.schroot/'.
## This will be our primary point of contact with the chroot.
CONFIG_VARS += LOCAL ABSLOCAL
LOCAL = local.schroot
ABSLOCAL = $(abspath $(LOCAL))
+help::; @echo " LOCAL directory for chroot /usr/local"
## How to run a command as a privileged user.
CONFIG_VARS += ROOTLY
$(shell dpkg-architecture -A$a \
-qDEB_TARGET_GNU_TYPE))
+###--------------------------------------------------------------------------
+### Basic help.
+
+help::
+ @echo "Basic targets" && \
+ echo " all build and install the infrastructure" && \
+ echo " clean delete build files" && \
+ echo " check verify correct installation"
+
###--------------------------------------------------------------------------
### Utilities.
$(MAINT) -f$(FRESH) $(JOBS)
.PHONY: maint
+help::
+ @echo "Maintenance targets" && \
+ echo " maint run chroot maintenance" && \
+ echo "Maintenance variables" && \
+ echo " FRESH max time between updates" && \
+ echo " N[smhdw] | create | force" && \
+ echo " JOBS maintenance jobs to run" && \
+ echo " ACT[.PAT,...][/FRESH]" && \
+ echo " OPTS additional options (bin/chroot-maint --help)" && \
+ echo "Maintenance actions" && \
+ echo " chroot create and populate chroot" && \
+ echo " cross-tools build cross-compilation toolchains" && \
+ echo " pkg-source download and unpack local utilities" && \
+ echo " pkg-build compile and install local utilities"
+
###--------------------------------------------------------------------------
### Running random commands.