aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 14adf891..3e7d89b0 100644
--- a/Makefile
+++ b/Makefile
@@ -38,9 +38,7 @@ build_cmd:=$(GO) build $(GOFLAGS) -ldflags "$(GO_LDFLAGS)" -o aerc
# the following command outputs nothing, we only want to execute it once
# and force .aerc.d to be regenerated when build_cmd has changed
-_!=echo '$(build_cmd)' > .aerc.tmp; \
- cmp -s .aerc.d .aerc.tmp || rm -f .aerc.d; \
- rm -f .aerc.tmp
+_!=grep -sqFx '$(build_cmd)' .aerc.d || rm -f .aerc.d
.aerc.d:
@echo '$(build_cmd)' > $@