6ada32dc91
This one extracts the exact time-ordered list of script hooks run while building the image. Some commons refactoring is also due.
17 lines
386 B
Makefile
17 lines
386 B
Makefile
# common bits for building and reporting parts
|
|
|
|
# somewhat reusable
|
|
BUILD_LOG = build.log
|
|
|
|
# link it to BUILDDIR if possible
|
|
SYMLINK = build
|
|
|
|
# brevity postprocessor; not exported, for toplevel use only
|
|
SHORTEN = $(shell \
|
|
echo -n "| sed"; \
|
|
if [ -s "$(SYMLINK)" ]; then \
|
|
echo -n " -e 's,$(BUILDDIR),$(SYMLINK),'"; \
|
|
fi; \
|
|
echo -n " -e 's,$(TMP),\$$TMP,' -e 's,$(HOME),~,'"; \
|
|
)
|