wmbiff: improve formatting of Makefile.am
[dockapps.git] / wmbiff / wmbiff / Makefile.am
blobe47c6c5da32432b3ea0a73dcdfdc72a5422dec27
1 bin_PROGRAMS = wmbiff
3 wmbiff_SOURCES = \
4         wmbiff.c \
5         socket.c \
6         Pop3Client.c \
7         mboxClient.c \
8         maildirClient.c \
9         Imap4Client.c \
10         tlsComm.c \
11         tlsComm.h \
12         ShellClient.c  \
13         passwordMgr.c \
14         passwordMgr.h \
15         charutil.c \
16         charutil.h \
17         Client.h \
18         regulo.c \
19         regulo.h \
20         MessageList.c \
21         MessageList.h
22 EXTRA_wmbiff_SOURCES = \
23         gnutls-common.c \
24         gnutls-common.h
25 wmbiff_LDADD = \
26         -L../wmgeneral -lwmgeneral \
27         @LIBGCRYPT_LIBS@ \
28         @GNUTLS_COMMON_O@
29 wmbiff_DEPENDENCIES = \
30         ../wmgeneral/libwmgeneral.a \
31         Makefile \
32         @GNUTLS_COMMON_O@
34 TESTS = test_wmbiff test_tlscomm
35 noinst_PROGRAMS = test_wmbiff test_tlscomm
37 test_wmbiff_SOURCES = \
38         ShellClient.c \
39         charutil.c \
40         charutil.h \
41         Client.h \
42         test_wmbiff.c \
43         passwordMgr.c \
44         Imap4Client.c \
45         regulo.c \
46         Pop3Client.c \
47         tlsComm.c \
48         tlsComm.h \
49         socket.c
50 EXTRA_test_wmbiff_SOURCES = \
51         gnutls-common.c \
52         gnutls-common.h
53 test_wmbiff_LDADD = \
54         @LIBGCRYPT_LIBS@
56 test_tlscomm_SOURCES = \
57         test_tlscomm.c \
58         tlsComm.c \
59         tlsComm.h
61 skindir = $(datadir)/wmbiff/skins
62 skin_DATA = \
63         wmbiff-master-led.xpm \
64         wmbiff-master-contrast.xpm \
65         wmbiff-classic-master-led.xpm \
66         wmbiff-classic-master-contrast.xpm
68 dist_man_MANS = wmbiff.1 wmbiffrc.5
70 EXTRA_DIST = \
71         sample.wmbiffrc \
72         wmbiff-master-led.xpm \
73         wmbiff-classic-master-led.xpm
75 MAINTAINERCLEANFILES = Makefile.in
77 # CODING STYLE AND INDENTATION [2001-Mar-12]:
79 # There have been some problems with coding style in the past.  Many people
80 # contributed to wmbiff (thank you!), and the code got really messy.  To help
81 # resolve this, I used GNU indent with what I believe to be the most
82 # widely-accepted coding style options (K&R style) with 4-space TAB indents
83 # (because some of the code is highly nested) to clean up the code.  Not
84 # everyone may be happy with this, but has been determined to be necessary for
85 # consistency and legibility.
87 # In other words, make sure you run "make clean" and "make indent", and do not
88 # change the options on the indent command, before you submit patches against
89 # wmbiff.  This will make everyone's life easier.
91 #       -- Dwayne C. Litzenberger <dlitz@dlitz.net>
92 indent:
93         indent -npro -kr -i4 -ts4 $(wmbiff_SOURCES) test_*.c || true
95 # to perform surgery on a few changed files.
96 .c.indent:
97         indent -npro -kr -i4 -ts4 $< || true
99 dist-hook-local: indent config-h-check
101 distclean-local:
102         -rm -f wmbiff-master-contrast.xpm wmbiff-master.xpm \
103                 wmbiff-classic-master-contrast.xpm
105 # remove colors, then substitute old colors, then repalletize
106 # for some reason $< doesn't always work.
107 wmbiff-master-contrast.xpm:  wmbiff-master-led.xpm Makefile
108         egrep -v '^"[:%][[:space:]]c #' < wmbiff-master-led.xpm | \
109         sed -e 's/:/./g' -e 's/%/$$/g' -e 's/ 15 / 13 /' | \
110         sed -e 's/#\([0-9A-F]\{2\}\)[0-9A-F]\{2\}\([0-9A-F]\{2\}\)[0-9A-F]\{2\}\([0-9A-F]\{2\}\)[0-9A-F]\{2\}/#\1\2\3/'\
111         > $@ || rm $@
113 wmbiff-classic-master-contrast.xpm:  wmbiff-classic-master-led.xpm Makefile
114         egrep -v '^"[:%][[:space:]]c #' < wmbiff-classic-master-led.xpm | \
115         sed -e 's/:/./g' -e 's/%/$$/g' -e 's/ 15 / 13 /' | \
116         sed -e 's/#\([0-9A-F]\{2\}\)[0-9A-F]\{2\}\([0-9A-F]\{2\}\)[0-9A-F]\{2\}\([0-9A-F]\{2\}\)[0-9A-F]\{2\}/#\1\2\3/'\
117         > $@ || rm $@
119 # fail if there's a .c file that doesn't include config.h
120 config-h-check:
121         ls *.c | sort > cfiles
122         grep -l config.h *.c | sort | diff - cfiles
123         rm cfiles
125 # just a reminder of how to run valgrind to get decent output.
126 valgrind:
127         valgrind --leak-check=yes ./wmbiff -exit