5f88152223
In particular: - .base is now generated from pieces (see image.in/Makefile) - s/DISTROS/IMAGES/g; s/CONFIGS/DISTROS/g (for clarity) - s/DISK_LISTS/MAIN_LISTS/g ("disk" was early m-p-d legacy) - introduced BASE_PACKAGES to complement BASE_LISTS - minor tweaks to Makefile (ARCH and DATE moved elsewhere) - libdistro.mk: dropped overlooked IMAGE_INIT_LIST copy - clean.mk: silly cleanup
29 lines
682 B
Makefile
29 lines
682 B
Makefile
# this makefile is designed to be included in toplevel one
|
|
ifndef BUILDDIR
|
|
$(error BUILDDIR not defined)
|
|
endif
|
|
|
|
# simple logging switch inspired by netch@'s advice:
|
|
# you can add plain $(LOG) to a rule recipe line to moderate it
|
|
# (logfile is automatically truncated during profile/init)
|
|
|
|
BUILDLOG ?= $(BUILDDIR)/build.log
|
|
|
|
# LOG holds a postprocessor
|
|
ifdef DEBUG
|
|
GLOBAL_VERBOSE ?= $(DEBUG)
|
|
ifeq (2,$(DEBUG))
|
|
SHELL += -x
|
|
endif
|
|
LOG = >>$(BUILDLOG) 2>&1
|
|
else
|
|
MAKE += -s
|
|
LOG = 2>>$(BUILDLOG) >/dev/null
|
|
# 1) makefile target; 2) also passed to script hooks
|
|
GLOBAL_DEBUG := debug
|
|
endif
|
|
|
|
DATE = $(shell date +%Y%m%d)
|
|
|
|
export BUILDLOG DATE DEBUG GLOBAL_DEBUG GLOBAL_VERBOSE LOG MAKE SHELL
|