Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 87 lines (73 sloc) 2.425 kb
1b69d1a @djcb * cosmetics
authored
1 ## Copyright (C) 2008-2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
c84e993 @djcb * update copyright info; add cc10 cyclomatic complexity check
authored
2 ##
3 ## This program is free software; you can redistribute it and/or modify
4 ## it under the terms of the GNU General Public License as published by
5 ## the Free Software Foundation; either version 3 of the License, or
6 ## (at your option) any later version.
7 ##
8 ## This program is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 ## GNU General Public License for more details.
12 ##
13 ## You should have received a copy of the GNU General Public License
14 ## along with this program; if not, write to the Free Software Foundation,
15 ## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
afcd800 @djcb * set up (unit) test framework using gtester
authored
17 include $(top_srcdir)/gtest.mk
18
245de14 @djcb * make guile/gtk/webkit dep optional (i.e., --disable-guile, --disable-w...
authored
19 if BUILD_GUILE
8b39c69 @djcb * some code re-arrangement: src/guile-> guile, toys/mm -> emacs
authored
20 guile=guile
21 else
22 guile=
23 endif
24
74ce489 @djcb * configure.ac/Makefile.am: require specific emacs version (23+)
authored
25 if BUILD_MU4E
dc62bd6 @djcb * rename emacs/ => mu4e/
authored
26 mu4e=mu4e
edda59b @djcb * mu4e: restructure code a bit and enable byte-compilation
authored
27 else
dc62bd6 @djcb * rename emacs/ => mu4e/
authored
28 mu4e=
edda59b @djcb * mu4e: restructure code a bit and enable byte-compilation
authored
29 endif
30
2fcdcaf @djcb * move widgets/ -> toys/mug2; remove toys/mug; rename toys/mug2 -> toys/...
authored
31 SUBDIRS=m4 man lib $(guile) mu $(mu4e) contrib toys
0b7693d @djcb * guilify mu; first steps, and a new toy called 'muile'
authored
32
a53f549 @djcb * configure.ac/Makfile.am: add m4 as a macro dir, require stdc
authored
33 ACLOCAL_AMFLAGS=-I m4
34
afcd800 @djcb * set up (unit) test framework using gtester
authored
35 # so we can say 'make test'
c5dc8f0 @djcb * add many unit tests
authored
36 check: test cleanupnote
37
38 cleanupnote:
63175c5 @djcb * Makefile.am, configure.ac: minor updates
authored
39 @echo -e "\nNote: you can remove the mu-test-<uid> dir in your tempdir"
c5dc8f0 @djcb * add many unit tests
authored
40 @echo "after 'make check' has finished."
afcd800 @djcb * set up (unit) test framework using gtester
authored
41
42 tags:
43 gtags
44
a3abc73 @djcb * add function size check ('make line30')
authored
45 # this warns about function that have a cyclomatic complexity of > 10,
46 # which is a sign that it needs some refactoring. requires the pmccabe
47 # tool. If all is fine, it outputs nothing
90c9b61 @djcb * update configuration files
authored
48 cc10:
66a839a @djcb * Makefile.am: ignore tests/ for make cc10 and make line33
authored
49 @$(PMCCABE) `find -name '*.c' -o -name '*.cc'` \
50 | grep -v mu-str-normalize.c \
b0fe977 @djcb * mu-str.c: much improved mu_str_normalize_subject (to skip Re:, Fwd: et...
authored
51 | grep -v mu_str_subject_normalize \
66a839a @djcb * Makefile.am: ignore tests/ for make cc10 and make line33
authored
52 | grep -v tests \
5818c40 @djcb * <many>: fix source code checks; move mu_msg_str_normalize to separate ...
authored
53 | sort -nr | awk '($$1 > 10)'
afcd800 @djcb * set up (unit) test framework using gtester
authored
54
07c36f3 @djcb * Makefile.am: set 35 lines as the new max for function length ('make li...
authored
55 # this warns about functions that are over 35 non-comment lines long, which is a
a3abc73 @djcb * add function size check ('make line30')
authored
56 # sign that they need some refactoring. requires the pmccabe tool. if
57 # all is fine, it outputs nothing
6014ef1 * Makefile.am: exempt big case-statement in mu-guile-message from pmccab...
djcb authored
58 # note, some functions are exempted from this rule.
07c36f3 @djcb * Makefile.am: set 35 lines as the new max for function length ('make li...
authored
59 line35:
66a839a @djcb * Makefile.am: ignore tests/ for make cc10 and make line33
authored
60 @$(PMCCABE) -c `find -name '*.c' -o -name '*.cc'` \
61 | grep -v mu-str-normalize.c \
b0fe977 @djcb * mu-str.c: much improved mu_str_normalize_subject (to skip Re:, Fwd: et...
authored
62 | grep -v mu_str_subject_normalize \
5441b19 @djcb * cleanup --exec implementation
authored
63 | grep -v config_options_group_find \
5d40728 @djcb * Makefile.am: be lenient for SCM_DEFINE (line35)
authored
64 | grep -v SCM_DEFINE \
66a839a @djcb * Makefile.am: ignore tests/ for make cc10 and make line33
authored
65 | grep -v tests \
07c36f3 @djcb * Makefile.am: set 35 lines as the new max for function length ('make li...
authored
66 | awk '($$5 > 35)'
3fbcac4 @djcb * HACKING, TODO, Makefile.am: small updates
authored
67
46e3037 @djcb * Makefile.am: add fixme target, to list all FIXMEs/TODOs
authored
68 # get all todo/fixme messages
69 fixme:
70 @grep -i 'FIXME\|TODO' `find src -type f`
71
c1203dd @djcb * Makefile.am: add 'make gitcheck'; bump database schema version
authored
72 # check whether we can run make distcheck from the repo version
73 gitcheck:
41f5d4a @djcb * Makefile.am: set the github repo as the default for `make gitcheck'
authored
74 cd `mktemp -d`; \
75 git clone git://github.com/djcb/mu.git ; \
76 cd mu; \
77 autoreconf -i ; \
78 ./configure ; \
c1203dd @djcb * Makefile.am: add 'make gitcheck'; bump database schema version
authored
79 make distcheck
80
afcd800 @djcb * set up (unit) test framework using gtester
authored
81 EXTRA_DIST= \
82 TODO \
83 HACKING \
46e3037 @djcb * Makefile.am: add fixme target, to list all FIXMEs/TODOs
authored
84 gtest.mk \
1d5d90d @djcb * add a dummy autogen.sh
authored
85 NEWS \
86 autogen.sh
Something went wrong with that request. Please try again.