mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
defs.mk: Define Q and use it in *.mk
Define Q ?= @, and replace @<command> in recipes by $(Q)<command>. Meant to be overridden from the environment for debugging as in Q= make Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
6ba9b2079d
commit
f869b5aaca
15 changed files with 47 additions and 45 deletions
|
|
@ -90,7 +90,7 @@ topdir.mrproper: topdir.distclean
|
|||
topdir.install: prefix.done $(INSTALLED_TOPDIR_FILES)
|
||||
|
||||
do-install-links:
|
||||
@@cwd=$(shell $(PWD)); \
|
||||
$(Q)@cwd=$(shell $(PWD)); \
|
||||
echo "o in $(INSTALL_LIBDIR):" ;\
|
||||
find lib -name '*.so' -o -name '*.so.*' -o -name '*.a' -o -name '*.dll' | \
|
||||
$(SED) 's%^\./%%' | \
|
||||
|
|
@ -176,7 +176,7 @@ $(GIT_DESCR): $(PROJECT_DESCR_FILE)
|
|||
mv $@.tmp $@
|
||||
|
||||
git-init.done:
|
||||
@if [ -e .git ]; then \
|
||||
$(Q)if [ -e .git ]; then \
|
||||
echo $(TOPDIR)/.git already exists, not running git init ;\
|
||||
else \
|
||||
@echo git init ;\
|
||||
|
|
@ -189,7 +189,7 @@ prefix.done:
|
|||
touch $@
|
||||
|
||||
echo-build-deps:
|
||||
@echo $(call proj_query, required-os-pkg --flavours "build" $(PROJECT))
|
||||
$(Q)echo $(call proj_query, required-os-pkg --flavours "build" $(PROJECT))
|
||||
|
||||
git-ssh-%:
|
||||
bash -c "`git remote get-url --push $* | sed 's|ssh://||; s|\([^/]\+\)/\(.*\)|LC_CDPATH=/\2 ssh -o SendEnv=LC_CDPATH \1|'`"
|
||||
|
|
@ -221,7 +221,7 @@ pkg-install-testbuild-deps:
|
|||
$(PKG_MANAGER_SH) install $(DASH_Y) $(BASE_PKGS) $(shell $(proj_query_cmd) pkg-requires --delimiter=' ' --no-version build,run,release $(PROJECT))
|
||||
|
||||
echo-hash:
|
||||
@/bin/bash $(PKG_SH_EXE) hash
|
||||
$(Q)/bin/bash $(PKG_SH_EXE) hash
|
||||
|
||||
recache-vars:
|
||||
rm -f $(TOPDIR)/make clean-cache cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue