summary refs log tree commit diff stats
path: root/doc/tut1.txt
Commit message (Expand)AuthorAgeFilesLines
* renamed most remaining .txt documentation files to .rstAraq2016-06-071-1696/+0
* Promote "echo" syntax without parenthesisAdam Stankiewicz2016-01-261-62/+62
* Wrap the example in a code blockXtreak2015-11-231-12/+11
* doc: Trim .txt files trailing whitespaceAdam Strzelecki2015-09-041-5/+5
* Update tut1.txtRafael2015-07-141-2/+19
* Add NEP1 to documentation.Varriount2015-07-101-1/+2
* Merge branch 'more_concurrency' into develAraq2015-06-301-3/+3
|\
| * minor tut1 updateAraq2015-05-281-3/+3
* | fix grammarAraq2015-06-251-2/+2
* | Use gender neutral language in documentationdef2015-06-211-5/+5
* | Update tut1.txtAlexander2015-06-161-7/+12
* | Update tut1.txtAlexander2015-06-161-1/+1
* | Update tut1.txtAlexander2015-06-161-0/+4
* | Fix typo in tutorialSergey Avseyev2015-05-231-1/+1
* | use new syntax for negative slicingMarkus Engelbrecht2015-05-151-1/+1
|/
* fixes typo in tut1Araq2015-05-041-36/+36
* minor documentation updatesAraq2015-02-161-2/+3
* Documentation renamesdef2015-01-161-5/+5
* TSlice -> Slice in the tut1Simon Hafner2015-01-131-2/+2
* Merge pull request #1831 from homeworkprod/patch-1reactormonk2015-01-031-1/+1
|\
| * Tutorial: Fixed slices example code.Jochen Kupperschmidt2015-01-021-1/+1
* | Fix typoArthur Liao2015-01-021-1/+1
|/
* Merge pull request #1812 from moigagoo/develreactormonk2015-01-021-1/+1
|\
| * Docs: Tutorial 1: Typo fixed.Konstantin Molchanov2015-01-011-1/+1
* | Merge branch 'devel' of https://github.com/Araq/Nimrod into develAraq2014-12-141-0/+13
|\ \
| * | Adding type conversion examples to the tutorialjemcroft2014-12-131-0/+13
* | | minor improvements to the docsAraq2014-12-141-30/+29
|/ /
* | removed outdated noteAraq2014-11-141-3/+0
* | deprecated string case statements without 'else'Araq2014-10-021-1/+1
* | manual split up into multiple files; documented the new concurrency systemAraq2014-10-021-6/+6
* | changed comment handling (breaking change)Araq2014-09-071-39/+8
* | big renameAraq2014-08-271-129/+129
* | Improves tut1.txt with more hyperlinks and minor fixes.Grzegorz Adam Hankiewicz2014-08-051-93/+106
* | Factors common documentation in fragment to avoid repetition.Grzegorz Adam Hankiewicz2014-07-271-40/+1
* | tut1.txt no BOM; streamlined example a bitAraq2014-07-021-8/+4
* | making clear structural equivalency for tuples docPavelVozenilek2014-06-151-2/+2
* | Removes many fake `idx` entries.Grzegorz Adam Hankiewicz2014-04-211-16/+16
|/
* Referential data types may need to be declared.ReneSac2014-04-191-6/+7
* Additions and clarifications to tutorial 1.ReneSac2014-04-171-21/+54
* tracked down a few more returnsSimon Hafner2014-02-051-5/+5
* added the parts of #541 that I likeAraq2014-02-021-0/+24
* 'nil' as a statement is deprecated, use an empty 'discard' insteadAraq2014-01-191-5/+5
* Merge pull request #818 from hiteshjasani/pr_devel_doc_import_constraintsSimon Hafner2014-01-161-0/+35
|\
| * Add docs for constraining and qualifying imports.Hitesh Jasani2014-01-161-0/+35
* | Adds note about iterators having same signature as procs.Grzegorz Adam Hankiewicz2014-01-151-1/+5
* | Adds note about procs and multiple variable assignment.Grzegorz Adam Hankiewicz2014-01-151-0/+6
|/
* Mentions tuple unpacking only works in var/let blocks.Grzegorz Adam Hankiewicz2013-12-011-7/+21
* Adds to tutorial info about unpacking tuples.Grzegorz Adam Hankiewicz2013-11-261-3/+37
* a few typosMark Henderson2013-11-031-4/+4
* Documents shortcut array syntax. Refs #397.Grzegorz Adam Hankiewicz2013-06-091-0/+15
='n9' href='#n9'>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

                                        

              
         



                                
         
                          
                    
              
                             

                                                    
                     
 
                              
                                                                      
 


                       
                       
 







                       
            
                       
 

                                                      
      
                                    
 
            
                                                                         
                                               



                                                                
                                                                    
                                                                    
                                                     
                                                              
                                                               
                                                           
                                                                     
 

















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

VERSION?=0.1.1

VPATH=doc
PREFIX?=/usr/local
_INSTDIR=$(DESTDIR)$(PREFIX)
BINDIR?=$(_INSTDIR)/bin
SHAREDIR?=$(_INSTDIR)/share/aerc
MANDIR?=$(_INSTDIR)/share/man
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-config.5 \
	aerc-imap.5 \
	aerc-smtp.5 \
	aerc-tutorial.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 -p $(BINDIR) $(MANDIR)/man1 $(MANDIR)/man5 $(MANDIR)/man7 \
		$(SHAREDIR) $(SHAREDIR)/filters
	install -m755 aerc $(BINDIR)/aerc
	install -m644 aerc.1 $(MANDIR)/man1/aerc.1
	install -m644 aerc-config.5 $(MANDIR)/man5/aerc-config.5
	install -m644 aerc-imap.5 $(MANDIR)/man5/aerc-imap.5
	install -m644 aerc-smtp.5 $(MANDIR)/man5/aerc-smtp.5
	install -m644 aerc-tutorial.7 $(MANDIR)/man7/aerc-tutorial.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 contrib/hldiff $(SHAREDIR)/filters/hldiff
	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 uninstall