aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-11-12 09:00:07 +0100
committerReto Brunner <reto@labrat.space>2020-11-13 23:54:00 +0100
commita2fd88d2d4dd2e8eee0314315e9967ebcb3d4a77 (patch)
tree5d655f6c4f4efad129c00dac88894c1c59df72f4
parent676fed9e2265a40f81cb9f2a083809ff7bf32772 (diff)
downloadaerc-a2fd88d2d4dd2e8eee0314315e9967ebcb3d4a77.tar.gz
makefile: add debug target
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4d3b595e..5ba7989c 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,10 @@ aerc: $(GOSRC)
aerc.conf: config/aerc.conf.in
sed -e 's:@SHAREDIR@:$(SHAREDIR):g' > $@ < config/aerc.conf.in
+debug: $(GOSRC)
+ GOFLAGS="-tags=notmuch" \
+ dlv debug --headless --listen localhost:4747 &>/dev/null
+
DOCS := \
aerc.1 \
aerc-search.1 \
@@ -109,4 +113,4 @@ uninstall:
.DEFAULT_GOAL := all
-.PHONY: all doc clean install uninstall
+.PHONY: all doc clean install uninstall debug