summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-23 00:06:24 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-23 00:06:24 -0600
commitdc00c8c577bb8260da9c9c937af907751d7ffd24 (patch)
tree8422265cc26d2313ee865a3e039580ec12493703
parentversion: bump (diff)
downloadwireguard-tools-dc00c8c577bb8260da9c9c937af907751d7ffd24.tar.xz
wireguard-tools-dc00c8c577bb8260da9c9c937af907751d7ffd24.zip
Makefile: simplify silent cleaning
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Makefile b/src/Makefile
index ec5d3a6..341a90e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -67,18 +67,14 @@ LINK.o += $(BUILT_IN_LINK.o)
BUILT_IN_COMPILE.c := $(COMPILE.c)
COMPILE.c = @echo " CC $@";
COMPILE.c += $(BUILT_IN_COMPILE.c)
+BUILT_IN_RM := $(RM)
+RM := @a() { echo " CLEAN $$@"; $(BUILT_IN_RM) "$$@"; }; a
endif
wg: $(sort $(patsubst %.c,%.o,$(wildcard *.c)))
-ifneq ($(V),1)
-clean:
- @echo " CLEAN {wg,*.o,*.d}"
- @$(RM) wg *.o *.d
-else
clean:
$(RM) wg *.o *.d
-endif
install: wg
@install -v -d "$(DESTDIR)$(BINDIR)" && install -v -m 0755 wg "$(DESTDIR)$(BINDIR)/wg"