You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
539 B
23 lines
539 B
# 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 FILTER=; \
|
|
if [ -s "$(SYMLINK)" ]; then \
|
|
FILTER=" -e 's,$(BUILDDIR),$(SYMLINK),'"; \
|
|
fi; \
|
|
if [ -n "$$TMP" ]; then \
|
|
FILTER="$$FILTER -e 's,$$TMP,\$$TMP,'"; \
|
|
fi; \
|
|
if [ -n "$$HOME" ]; then \
|
|
FILTER="$$FILTER -e 's,$$HOME,~,'"; \
|
|
fi; \
|
|
if [ -n "$$FILTER" ]; then \
|
|
echo -n "| sed $$FILTER"; \
|
|
fi; \
|
|
)
|
|
|