defs.mk, dirs.mk, topdir.mk: Beautify cat-makefiles target output

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-03-04 10:01:10 +00:00
commit 5b737e50f8
3 changed files with 2 additions and 3 deletions

View file

@ -1084,7 +1084,7 @@ echo-makefiles:
$(Q)strace -f make nothing 2>&1 | sed '/open\(at\)*(.*\(Makefile\|\.mk\)/ !d; s/.*open("//; s/.*openat([A-Z_]\+, "//; s/", O_.*//'
cat-makefiles:
Q=@ make --no-print-directory echo-makefiles | while read f; do echo "# =================================================== $$f"; cat $$f; done
Q=@ make --no-print-directory echo-makefiles | while read f; do echo "# =================================================== $$f"; sed 's/^include/#cat include/' $$f; done
doc-module:
$(BROWSER) $(JANWARE_URL_DOC_MODULE)

View file

@ -33,7 +33,6 @@ SUBDIR_TARGETS = $(filter $(ALLOWED_SUBDIR_TARGETS),$(MAKECMDGOALS))
endif
ifneq ($(DONT_CHECK_PREREQ_DONE),true)
PREREQ += $(call proj_query, prereq build $(PROJECT))
PREREQ_DIRS = $(foreach p, $(PREREQ), $(call proj_dir, $(p)))
PREREQ_DIRS_DONE = $(addsuffix /dirs-all.done,$(filter-out $(TOPDIR) /opt/%,$(PREREQ_DIRS)))
endif

View file

@ -156,7 +156,7 @@ prefix.done:
touch $@
echo-prereq-build:
@echo $(call proj_query, requires-pkg --flavours "build" $(PROJECT))
@echo $(call proj_query, pkg-requires --flavours "build" $(PROJECT))
list-files echo-files:
@$(LIST_VCS_FILES) -f