22 EXTRA_wmbiff_SOURCES = \
26 -L../wmgeneral -lwmgeneral \
29 wmbiff_DEPENDENCIES = \
30 ../wmgeneral/libwmgeneral.a \
34 TESTS = test_wmbiff test_tlscomm
35 noinst_PROGRAMS = test_wmbiff test_tlscomm
37 test_wmbiff_SOURCES = \
50 EXTRA_test_wmbiff_SOURCES = \
56 test_tlscomm_SOURCES = \
61 skindir = $(datadir)/wmbiff/skins
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
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>
93 indent -npro -kr -i4 -ts4 $(wmbiff_SOURCES) test_*.c || true
95 # to perform surgery on a few changed files.
97 indent -npro -kr -i4 -ts4 $< || true
99 dist-hook-local: indent config-h-check
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/'\
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/'\
119 # fail if there's a .c file that doesn't include config.h
121 ls *.c | sort > cfiles
122 grep -l config.h *.c | sort | diff - cfiles
125 # just a reminder of how to run valgrind to get decent output.
127 valgrind --leak-check=yes ./wmbiff -exit