Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 86 lines (72 sloc) 2.389 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
b46d591 @djcb * start working on some mu-based widgets (widgets/), create toys2/mug…
authored
19 # only build widgets if we have webkit
f42f0cd @djcb * update build system
authored
20 if BUILD_WIDGETS
b46d591 @djcb * start working on some mu-based widgets (widgets/), create toys2/mug…
authored
21 widgets=widgets
22 else
23 widgets=
24 endif
25
8b39c69 @djcb * some code re-arrangement: src/guile-> guile, toys/mm -> emacs
authored
26 if HAVE_GUILE
27 guile=guile
28 else
29 guile=
30 endif
31
0446ec3 @djcb * add some documentation infrastructure
authored
32 SUBDIRS=m4 man src $(widgets) $(guile) emacs contrib toys
0b7693d @djcb * guilify mu; first steps, and a new toy called 'muile'
authored
33
a53f549 @djcb * configure.ac/Makfile.am: add m4 as a macro dir, require stdc
authored
34 ACLOCAL_AMFLAGS=-I m4
35
afcd800 @djcb * set up (unit) test framework using gtester
authored
36 # so we can say 'make test'
c5dc8f0 @djcb * add many unit tests
authored
37 check: test cleanupnote
38
39 cleanupnote:
63175c5 @djcb * Makefile.am, configure.ac: minor updates
authored
40 @echo -e "\nNote: you can remove the mu-test-<uid> dir in your tempdir"
c5dc8f0 @djcb * add many unit tests
authored
41 @echo "after 'make check' has finished."
afcd800 @djcb * set up (unit) test framework using gtester
authored
42
43 tags:
44 gtags
45
a3abc73 @djcb * add function size check ('make line30')
authored
46 # this warns about function that have a cyclomatic complexity of > 10,
47 # which is a sign that it needs some refactoring. requires the pmccabe
48 # tool. If all is fine, it outputs nothing
90c9b61 @djcb * update configuration files
authored
49 cc10:
66a839a @djcb * Makefile.am: ignore tests/ for make cc10 and make line33
authored
50 @$(PMCCABE) `find -name '*.c' -o -name '*.cc'` \
51 | grep -v mu-str-normalize.c \
52 | grep -v tests \
5818c40 @djcb * <many>: fix source code checks; move mu_msg_str_normalize to separa…
authored
53 | sort -nr | awk '($$1 > 10)'
afcd800 @djcb * set up (unit) test framework using gtester
authored
54
63175c5 @djcb * Makefile.am, configure.ac: minor updates
authored
55 # this warns about functions that are over 33 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 pmc…
djcb authored
58 # note, some functions are exempted from this rule.
63175c5 @djcb * Makefile.am, configure.ac: minor updates
authored
59 line33:
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 \
5441b19 @djcb * cleanup --exec implementation
authored
62 | grep -v config_options_group_find \
6014ef1 * Makefile.am: exempt big case-statement in mu-guile-message from pmc…
djcb authored
63 | grep -v SCM_DEFINE_PUBLIC \
66a839a @djcb * Makefile.am: ignore tests/ for make cc10 and make line33
authored
64 | grep -v tests \
5818c40 @djcb * <many>: fix source code checks; move mu_msg_str_normalize to separa…
authored
65 | awk '($$5 > 33)'
3fbcac4 @djcb * HACKING, TODO, Makefile.am: small updates
authored
66
46e3037 @djcb * Makefile.am: add fixme target, to list all FIXMEs/TODOs
authored
67 # get all todo/fixme messages
68 fixme:
69 @grep -i 'FIXME\|TODO' `find src -type f`
70
c1203dd @djcb * Makefile.am: add 'make gitcheck'; bump database schema version
authored
71 # check whether we can run make distcheck from the repo version
72 gitcheck:
73 cd `mktemp -d`; \
ba4893c @djcb * preparing for 0.9.7-pre
authored
74 git clone git://gitorious.org/mu/mu.git ; \
dba9678 * fix 'make gitcheck'
djcb authored
75 cd mu; \
c1203dd @djcb * Makefile.am: add 'make gitcheck'; bump database schema version
authored
76 autoreconf -i ;\
77 ./configure ; \
78 make distcheck
79
afcd800 @djcb * set up (unit) test framework using gtester
authored
80 EXTRA_DIST= \
81 TODO \
82 HACKING \
46e3037 @djcb * Makefile.am: add fixme target, to list all FIXMEs/TODOs
authored
83 gtest.mk \
1d5d90d @djcb * add a dummy autogen.sh
authored
84 NEWS \
85 autogen.sh
Something went wrong with that request. Please try again.