diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-14 05:17:40 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-17 19:26:07 +0200 |
commit | 9ea28cad7d713e938656f6294167dfc80f71e0fa (patch) | |
tree | 7d2e0ed07928db85e0e893f12448eebf5b87b27d | |
parent | qemu: newer packages (diff) | |
download | wireguard-monolithic-historical-9ea28cad7d713e938656f6294167dfc80f71e0fa.tar.xz wireguard-monolithic-historical-9ea28cad7d713e938656f6294167dfc80f71e0fa.zip |
Makefile: even prettier output
-rw-r--r-- | src/Makefile | 4 | ||||
-rw-r--r-- | src/tools/Makefile | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index ec6cfc5..c4ccb55 100644 --- a/src/Makefile +++ b/src/Makefile @@ -9,6 +9,10 @@ PWD := $(shell pwd) all: module tools debug: module-debug tools-debug +ifneq ($(V),1) +MAKEFLAGS += --no-print-directory +endif + version.h: @export GIT_CEILING_DIRECTORIES="$$(readlink -f ../..)" && \ ver="#define WIREGUARD_VERSION \"$$(git describe --dirty 2>/dev/null)\"" && \ diff --git a/src/tools/Makefile b/src/tools/Makefile index 01f873c..bd727d4 100644 --- a/src/tools/Makefile +++ b/src/tools/Makefile @@ -48,10 +48,10 @@ endif ifneq ($(V),1) BUILT_IN_LINK.o := $(LINK.o) -LINK.o = @echo " LD $@"; +LINK.o = @echo " LD $$(pwd)/$@"; LINK.o += $(BUILT_IN_LINK.o) BUILT_IN_COMPILE.c := $(COMPILE.c) -COMPILE.c = @echo " CC $@"; +COMPILE.c = @echo " CC $$(pwd)/$@"; COMPILE.c += $(BUILT_IN_COMPILE.c) endif @@ -59,7 +59,7 @@ wg: $(patsubst %.c,%.o,$(wildcard *.c)) ifneq ($(V),1) clean: - @echo " RM " 'wg *.o *.d' + @echo " CLEAN $$(pwd)/{wg,*.o,*.d}" @$(RM) wg *.o *.d else clean: |