about summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
...
| * | Exit *_incoming_msg functions when plain message is emptyMichael Vetter2022-07-043-0/+17
| * | ox: handle empty message->plainMichael Vetter2022-07-041-0/+8
|/ /
* | Let slashguard ignore quoted messagesMichael Vetter2022-07-041-1/+2
* | Merge pull request #1731 from profanity-im/retrieve-enc-type-from-dbMichael Vetter2022-06-291-3/+21
|\ \
| * | database: remove commentMichael Vetter2022-06-291-1/+1
| * | database: retrieve encryption typeMichael Vetter2022-06-291-2/+20
* | | Merge pull request #1730 from profanity-im/fix/scrollingMichael Vetter2022-06-291-0/+4
|\ \ \ | |/ / |/| |
| * | Don't scroll if not neededMichael Vetter2022-06-291-0/+4
|/ /
* | ox: add helper message in case signcrypt doesnt workMichael Vetter2022-06-291-0/+1
* | Merge pull request #1729 from profanity-im/various-cleanupsMichael Vetter2022-06-296-126/+61
|\ \
| * | stanza: remove strange assignmentMichael Vetter2022-06-291-1/+1
| * | accounts: deduplicate code via helper functionMichael Vetter2022-06-291-116/+54
| * | scripts: get rid of read variableMichael Vetter2022-06-291-4/+2
| * | build: otr cflags -> CFLAGSMichael Vetter2022-06-291-1/+1
| * | chatlog: remove unused variableMichael Vetter2022-06-291-3/+0
| * | database: unref dateMichael Vetter2022-06-291-1/+3
|/ /
* | Merge pull request #1728 from profanity-im/cleanup-pgp-oxMichael Vetter2022-06-2910-573/+664
|\ \
| * | Remove commentMichael Vetter2022-06-291-10/+0
| * | Move ox_gpg_public_keys descriptionMichael Vetter2022-06-292-7/+3
| * | Split ox functions from gpg.c to ox.cMichael Vetter2022-06-2910-573/+678
|/ /
* | Merge pull request #1727 from profanity-im/log-chatlog-splitMichael Vetter2022-06-2816-608/+740
|\ \
| * | chatlog: sort and rename some functionsMichael Vetter2022-06-281-36/+34
| * | add chatlog unittestMichael Vetter2022-06-284-66/+94
| * | log: put static functions on topMichael Vetter2022-06-281-55/+52
| * | Include xmpp.h to cafile.cMichael Vetter2022-06-281-0/+1
| * | Include common.h and xmpp.h in editor.cMichael Vetter2022-06-281-0/+2
| * | Include xmpp.h in bookmark_ignore.cMichael Vetter2022-06-281-0/+2
| * | Include xmpp and message header to database.cMichael Vetter2022-06-281-0/+2
| * | Split log.c into log.c and chatlog.cMichael Vetter2022-06-289-490/+592
|/ /
* | Add minor hint to manpageMichael Vetter2022-06-281-1/+1
* | Merge pull request #1726 from profanity-im/feat/1627-change-log-levelMichael Vetter2022-06-226-8/+57
|\ \
| * | Fix formattingMichael Vetter2022-06-221-1/+1
| * | Add autocompletion for `/log level`Michael Vetter2022-06-221-0/+13
| * | Display log level information in preferencesMichael Vetter2022-06-223-0/+22
| * | Rename _log_string_from_level to _log_abbreviation_string_from_levelMichael Vetter2022-06-221-3/+4
| * | Correct default log maxsize in helpMichael Vetter2022-06-221-1/+1
| * | Let user change log level while runningMichael Vetter2022-06-223-4/+17
|/ /
* | Merge pull request #1725 from profanity-im/feat/optional-moodMichael Vetter2022-06-229-4/+44
|\ \
| * | Display mood preferencesMichael Vetter2022-06-226-3/+20
| * | Make mood display optionalMichael Vetter2022-06-226-3/+26
|/ /
* | Merge pull request #1722 from MarcoPolo-PasTonMolo/fix/automatically-start-ox...Michael Vetter2022-06-2112-39/+163
|\ \ | |/ |/|
| * Fix build without omemoMarcoPolo-PasTonMolo2022-06-171-0/+2
| * Don't forget encryption status for OX and PGP.MarcoPolo-PasTonMolo2022-06-1712-39/+161
|/
* Merge pull request #1721 from MarcoPolo-PasTonMolo/fix/improve-parserMichael Vetter2022-06-161-3/+12
|\
| * Improve cmd argument parserMarcoPolo-PasTonMolo2022-06-161-3/+12
* | ci: Remove TW for nowMichael Vetter2022-06-161-1/+1
|/
* doap: use more recent screenshotMichael Vetter2022-06-161-1/+1
* doap: add logoMichael Vetter2022-06-161-3/+1
* doap: add repoMichael Vetter2022-06-161-9/+7
* doap: add maintainerMichael Vetter2022-06-161-0/+7
0fb79f190c54977db9686f5f95'>^
7f540df ^
177651b ^


3ba69ed ^

fc719e4 ^
d3b5a76 ^









7a26b48 ^
4875813 ^
0016775 ^
d3b5a76 ^








fc719e4 ^

d3b5a76 ^
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107


                                        
 
             
 
         




                                
      

         
                          
                    

              
                                


                                                    
                     
 
                              
                                                                      
 

                
                       

                       
                        
                         
                        
                     

                         
 








                       

            
                       
 


                                                      
      
                                    
 
            
                                                                               
                                                                     

                                                  
                                                                

                                                                
                                                                  
                                                                    
                                                                  
                                                            
                                                                    
                                                                      
                                                                    
                                                     
                                                              


                                                                     

                                                                                     
 









                                                    
                                           
                                            
                                           








                                            

                    
                                       
.POSIX:
.SUFFIXES:
.SUFFIXES: .1 .5 .7 .1.scd .5.scd .7.scd

VERSION=0.3.0

VPATH=doc
PREFIX?=/usr/local
_INSTDIR=$(DESTDIR)$(PREFIX)
BINDIR?=$(_INSTDIR)/bin
SHAREDIR?=$(_INSTDIR)/share/aerc
MANDIR?=$(_INSTDIR)/share/man
GO?=go
GOFLAGS?=

GOSRC!=find . -name '*.go'
GOSRC+=go.mod go.sum

aerc: $(GOSRC)
	$(GO) build $(GOFLAGS) \
		-ldflags "-X main.Prefix=$(PREFIX) \
		-X main.ShareDir=$(SHAREDIR) \
		-X main.Version=$(VERSION)" \
		-o $@

aerc.conf: config/aerc.conf.in
	sed -e 's:@SHAREDIR@:$(SHAREDIR):g' > $@ < config/aerc.conf.in

DOCS := \
	aerc.1 \
	aerc-search.1 \
	aerc-config.5 \
	aerc-imap.5 \
	aerc-maildir.5 \
	aerc-sendmail.5 \
	aerc-notmuch.5 \
	aerc-smtp.5 \
	aerc-tutorial.7 \
	aerc-templates.7

.1.scd.1:
	scdoc < $< > $@

.5.scd.5:
	scdoc < $< > $@

.7.scd.7:
	scdoc < $< > $@

doc: $(DOCS)

all: aerc aerc.conf doc

# Exists in GNUMake but not in NetBSD make and others.
RM?=rm -f

clean:
	$(RM) $(DOCS) aerc.conf aerc

install: all
	mkdir -m755 -p $(BINDIR) $(MANDIR)/man1 $(MANDIR)/man5 $(MANDIR)/man7 \
		$(SHAREDIR) $(SHAREDIR)/filters $(SHAREDIR)/templates
	install -m755 aerc $(BINDIR)/aerc
	install -m644 aerc.1 $(MANDIR)/man1/aerc.1
	install -m644 aerc-search.1 $(MANDIR)/man1/aerc-search.1
	install -m644 aerc-config.5 $(MANDIR)/man5/aerc-config.5
	install -m644 aerc-imap.5 $(MANDIR)/man5/aerc-imap.5
	install -m644 aerc-maildir.5 $(MANDIR)/man5/aerc-maildir.5
	install -m644 aerc-sendmail.5 $(MANDIR)/man5/aerc-sendmail.5
	install -m644 aerc-notmuch.5 $(MANDIR)/man5/aerc-notmuch.5
	install -m644 aerc-smtp.5 $(MANDIR)/man5/aerc-smtp.5
	install -m644 aerc-tutorial.7 $(MANDIR)/man7/aerc-tutorial.7
	install -m644 aerc-templates.7 $(MANDIR)/man7/aerc-templates.7
	install -m644 config/accounts.conf $(SHAREDIR)/accounts.conf
	install -m644 aerc.conf $(SHAREDIR)/aerc.conf
	install -m644 config/binds.conf $(SHAREDIR)/binds.conf
	install -m755 filters/hldiff $(SHAREDIR)/filters/hldiff
	install -m755 filters/html $(SHAREDIR)/filters/html
	install -m755 filters/plaintext $(SHAREDIR)/filters/plaintext
	install -m644 templates/quoted_reply $(SHAREDIR)/templates/quoted_reply
	install -m644 templates/forward_as_body $(SHAREDIR)/templates/forward_as_body

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-maildir.5
	$(RM) $(MANDIR)/man5/aerc-sendmail.5
	$(RM) $(MANDIR)/man5/aerc-notmuch.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 uninstall