about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Makefile21
1 files changed, 20 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0ad13e0..a2f92f6 100644
--- a/Makefile
+++ b/Makefile
@@ -63,6 +63,25 @@ install: all
 	install -m755 contrib/html $(SHAREDIR)/filters/html
 	install -m755 contrib/plaintext $(SHAREDIR)/filters/plaintext
 
+RMDIR_IF_EMPTY:=sh -c '\
+if test -d $$0 && ! ls -1qA $$0 | grep -q . ; then \
+	rmdir $$0; \
+fi'
+
+uninstall:
+	$(RM) $(BINDIR)/aerc
+	$(RM) $(MANDIR)/man1/aerc.1
+	$(RM) $(MANDIR)/man5/aerc-config.5
+	$(RM) $(MANDIR)/man5/aerc-imap.5
+	$(RM) $(MANDIR)/man5/aerc-smtp.5
+	$(RM) $(MANDIR)/man7/aerc-tutorial.7
+	$(RM) -r $(SHAREDIR)
+	${RMDIR_IF_EMPTY} $(BINDIR)
+	$(RMDIR_IF_EMPTY) $(MANDIR)/man1
+	$(RMDIR_IF_EMPTY) $(MANDIR)/man5
+	$(RMDIR_IF_EMPTY) $(MANDIR)/man7
+	$(RMDIR_IF_EMPTY) $(MANDIR)
+
 .DEFAULT_GOAL := all
 
-.PHONY: all doc clean install
+.PHONY: all doc clean install uninstall
m> 2016-03-27 17:43:41 -0700 2812' href='/akkartik/mu/commit/html/display.mu.html?h=hlt&id=a654e4ecace2d506d1b10f1dde2c287ebe84ef37'>a654e4ec ^
c5ffb6e1 ^

4a39d12d ^
e4ac3c9e ^






805d58c6 ^
e4ac3c9e ^



c5ffb6e1 ^

a654e4ec ^



e5c11a51 ^






















a654e4ec ^

c5ffb6e1 ^
e5c11a51 ^
e4ac3c9e ^
a654e4ec ^
204dae92 ^

b301e0c0 ^
204dae92 ^
3ea092f2 ^



1437d841 ^
3ea092f2 ^















c5ffb6e1 ^


a654e4ec ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89