Skip to content
Newer
Older
100644 70 lines (57 sloc) 2.05 KB
a3ec22b @djcb * add start of zsh-completion support (WIP)
authored
1 ## Copyright (C) 2008-2010 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
45c95b0 @djcb * move mug/ to toys/mug
authored
19 SUBDIRS=man src contrib toys
c84e993 @djcb * update copyright info; add cc10 cyclomatic complexity check
authored
20
a53f549 @djcb * configure.ac/Makfile.am: add m4 as a macro dir, require stdc
authored
21 ACLOCAL_AMFLAGS=-I m4
22
afcd800 @djcb * set up (unit) test framework using gtester
authored
23 # so we can say 'make test'
c5dc8f0 @djcb * add many unit tests
authored
24 check: test cleanupnote
25
26 cleanupnote:
63175c5 @djcb * Makefile.am, configure.ac: minor updates
authored
27 @echo -e "\nNote: you can remove the mu-test-<uid> dir in your tempdir"
c5dc8f0 @djcb * add many unit tests
authored
28 @echo "after 'make check' has finished."
afcd800 @djcb * set up (unit) test framework using gtester
authored
29
30 tags:
31 gtags
32
a3abc73 @djcb * add function size check ('make line30')
authored
33 # this warns about function that have a cyclomatic complexity of > 10,
34 # which is a sign that it needs some refactoring. requires the pmccabe
35 # tool. If all is fine, it outputs nothing
90c9b61 @djcb * update configuration files
authored
36 cc10:
5818c40 @djcb * <many>: fix source code checks; move mu_msg_str_normalize to separa…
authored
37 @$(PMCCABE) `find -name '*.c' -o -name '*.cc'` \
a5b913e @djcb * Makefile.am, mug-msg-list-view.c: fix line33 test
authored
38 | grep -v mu-str-normalize.c \
5818c40 @djcb * <many>: fix source code checks; move mu_msg_str_normalize to separa…
authored
39 | sort -nr | awk '($$1 > 10)'
afcd800 @djcb * set up (unit) test framework using gtester
authored
40
63175c5 @djcb * Makefile.am, configure.ac: minor updates
authored
41 # this warns about functions that are over 33 non-comment lines long, which is a
a3abc73 @djcb * add function size check ('make line30')
authored
42 # sign that they need some refactoring. requires the pmccabe tool. if
43 # all is fine, it outputs nothing
5818c40 @djcb * <many>: fix source code checks; move mu_msg_str_normalize to separa…
authored
44 # note, mu_msg_str_normalize is excempted from this rule.
63175c5 @djcb * Makefile.am, configure.ac: minor updates
authored
45 line33:
5818c40 @djcb * <many>: fix source code checks; move mu_msg_str_normalize to separa…
authored
46 @$(PMCCABE) -c `find -name '*.c' -o -name '*.cc'` \
a5b913e @djcb * Makefile.am, mug-msg-list-view.c: fix line33 test
authored
47 | grep -v mu-str-normalize.c \
5818c40 @djcb * <many>: fix source code checks; move mu_msg_str_normalize to separa…
authored
48 | awk '($$5 > 33)'
3fbcac4 @djcb * HACKING, TODO, Makefile.am: small updates
authored
49
46e3037 @djcb * Makefile.am: add fixme target, to list all FIXMEs/TODOs
authored
50 # get all todo/fixme messages
51 fixme:
52 @grep -i 'FIXME\|TODO' `find src -type f`
53
c1203dd @djcb * Makefile.am: add 'make gitcheck'; bump database schema version
authored
54 # check whether we can run make distcheck from the repo version
55 gitcheck:
56 cd `mktemp -d`; \
57 git clone git://gitorious.org/mu/mu-ng.git ; \
58 cd mu-ng ; \
59 autoreconf -i ;\
60 ./configure ; \
61 make distcheck
62
46e3037 @djcb * Makefile.am: add fixme target, to list all FIXMEs/TODOs
authored
63
afcd800 @djcb * set up (unit) test framework using gtester
authored
64 EXTRA_DIST= \
65 TODO \
66 HACKING \
46e3037 @djcb * Makefile.am: add fixme target, to list all FIXMEs/TODOs
authored
67 gtest.mk \
1d5d90d @djcb * add a dummy autogen.sh
authored
68 NEWS \
69 autogen.sh
Something went wrong with that request. Please try again.