readd border size on geom
[awesome.git] / Makefile.am
blob2a85c7911eb19420f3675f8e2893f38770f9736d
1 BUILT_SOURCES =
2 CLEANFILES =
3 EXTRA_DIST =
4 SUFFIXES =
5 bin_PROGRAMS =
6 doc_DATA =
7 man_MANS =
8 iconslayoutsdir = $(pkgdatadir)/icons/layouts
9 dist_iconslayouts_DATA =
11 LAYOUTS =
13 LAYOUTS += layouts/tile.c
14 LAYOUTS += layouts/tile.h
16 LAYOUTS += layouts/floating.c
17 LAYOUTS += layouts/floating.h
19 LAYOUTS += layouts/max.c
20 LAYOUTS += layouts/max.h
22 LAYOUTS += layouts/fibonacci.c
23 LAYOUTS += layouts/fibonacci.h
26 WIDGETS =
27 WIDGETS += widgets/taglist.c
28 WIDGETS += widgets/layoutinfo.c
29 WIDGETS += widgets/textbox.c
30 WIDGETS += widgets/focustitle.c
31 WIDGETS += widgets/iconbox.c
32 WIDGETS += widgets/netwmicon.c
33 WIDGETS += widgets/progressbar.c
34 WIDGETS += widgets/tasklist.c
35 WIDGETS += widgets/graph.c
38 doc_DATA   += README
40 EXTRA_DIST += LICENSE
42 EXTRA_DIST += STYLE
43 doc_DATA   += STYLE
46 EXTRA_DIST    += awesomerc.in
47 CLEANFILES    += awesomerc
48 BUILT_SOURCES += awesomerc
49 doc_DATA      += awesomerc
50 awesomerc: $(srcdir)/awesomerc.in
51         $(SED) -e "s|[@]iconslayoutsdir@|$(iconslayoutsdir)|" \
52                 < $(srcdir)/awesomerc.in > awesomerc
55 CLEANFILES    += defconfig.h
56 BUILT_SOURCES += defconfig.h
57 defconfig.h: awesomerc
58         @echo "generating defconfig.h from awesomerc"
59         @echo "#define AWESOME_DEFAULT_CONFIG \\" > defconfig.h
60         @echo -n "\"" >> defconfig.h
61         @$(SED) 's,\\,\\\\,g;s/$$/ \\/;s/"/\\"/g' "awesomerc" >> defconfig.h
62         @echo "\"" >> defconfig.h
64 if USING_GCC
65 # If you are using gcc, and want to deactivate this default set of
66 # compile flags, run make with AWESOME_CFLAGS="".
67 AWESOME_CFLAGS = -std=gnu99 -pipe \
68                  -Wall -Wextra \
69                  -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare \
70                  -Wunused -Winit-self -Wpointer-arith -Wredundant-decls \
71                  -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn
72 endif
73 AM_CPPFLAGS = $(XFT_CFLAGS) $(X_CFLAGS) $(CAIRO_CFLAGS) $(CONFUSE_CFLAGS) $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) $(AWESOME_CFLAGS)
75 bin_PROGRAMS += awesome
76 awesome_SOURCES = \
77         client.c client.h \
78         focus.c focus.h \
79         draw.c draw.h \
80         event.c event.h \
81         layout.c layout.h \
82         awesome.c awesome.h \
83         tag.c tag.h \
84         util.c util.h \
85         xutil.c xutil.h \
86         config.c config.h \
87         screen.c screen.h \
88         statusbar.c statusbar.h \
89         uicb.c uicb.h \
90         window.c window.h \
91         rules.c rules.h \
92         mouse.c mouse.h \
93         awesome-client-common.c \
94         widget.c widget.h \
95         ewmh.c ewmh.h
96 awesome_SOURCES += $(LAYOUTS)
97 awesome_SOURCES += $(WIDGETS)
98 awesome_LDADD = $(XFT_LIBS) $(X_LIBS) $(CAIRO_LIBS) $(CONFUSE_LIBS) $(XRANDR_LIBS) $(XINERAMA_LIBS)
100 bin_PROGRAMS += awesome-client
101 awesome_client_SOURCES = \
102         awesome-client.c awesome-client.h \
103         awesome-client-common.c \
104         util.c util.h
107 EXTRA_DIST += awesome.1.txt
108 man_MANS   += awesome.1
110 EXTRA_DIST += awesome-client.1.txt
111 man_MANS   += awesome-client.1
113 EXTRA_DIST += awesomerc.1.txt
114 man_MANS   += awesomerc.1
116 dist_iconslayouts_DATA += icons/layouts/dwindle.png
117 dist_iconslayouts_DATA += icons/layouts/dwindlew.png
118 dist_iconslayouts_DATA += icons/layouts/floating.png
119 dist_iconslayouts_DATA += icons/layouts/floatingw.png
120 dist_iconslayouts_DATA += icons/layouts/max.png
121 dist_iconslayouts_DATA += icons/layouts/maxw.png
122 dist_iconslayouts_DATA += icons/layouts/spiral.png
123 dist_iconslayouts_DATA += icons/layouts/spiralw.png
124 dist_iconslayouts_DATA += icons/layouts/tile.png
125 dist_iconslayouts_DATA += icons/layouts/tileleft.png
126 dist_iconslayouts_DATA += icons/layouts/tileleftw.png
127 dist_iconslayouts_DATA += icons/layouts/tilew.png
129 clean-local:
130         rm -f awesome*.1 awesome*.1.xml
132 SUFFIXES += .1.xml .1
133 if HAVE_XMLTO
134 .1.xml.1:
135         $(XMLTO) man $<
136 endif
138 SUFFIXES += .1.txt .1.xml
139 if HAVE_ASCIIDOC
140 .1.txt.1.xml:
141         $(ASCIIDOC) -d manpage -b docbook -o $@ $<
142 endif
145 # Check that package version matches git version before creating dist tarballs
146 dist-hook: git-version-check
147 distcheck-hook: git-version-check
149 git-version-check:
150         git_ver=`{ test -d $(top_srcdir)/.git && git --git-dir=$(top_srcdir)/.git describe 2> /dev/null; } || echo devel`; \
151         if test "x$${git_ver}" = "x$(PACKAGE_VERSION)" -o "x$${git_ver}" = "xv${PACKAGE_VERSION}"; then :; else \
152                 echo "ERROR: The PACKAGE_VERSION and the 'git describe' version do not match:"; \
153                 echo "         current git version:     $${git_ver}"; \
154                 echo "         current package version: $(PACKAGE_VERSION)"; \
155                 echo "You can update the PACKAGE_VERSION by running $(top_srcdir)/autogen.sh."; \
156                 exit 1; \
157         fi
160 EXTRA_DIST += awesome.doxygen.in
162 # Workaround for buggy pre-1.5.3 doxygen.
164 # Some pre-1.5.3 versions of doxygen segfault on reading these lines.
165 # Call make with DOXYGEN_SEGFAULT=-segfault as a workaround.
166 CLEANFILES += awesome.doxygen-segfault
167 awesome.doxygen-segfault: awesome.doxygen
168         $(SED) '/^QT_AUTOBRIEF/d; /^EXTRACT_ANON_NSPACES/d; /^HTML_DYNAMIC_SECTIONS/d' \
169                 < awesome.doxygen > awesome.doxygen-segfault
171 if HAVE_DOXYGEN
172 doc: doc/html/index.html
174 doc/html/index.html: awesome.doxygen$(DOXYGEN_SEGFAULT) $(awesome_SOURCES) $(awesome_client_SOURCES)
175         $(DOXYGEN) awesome.doxygen$(DOXYGEN_SEGFAULT)
176 endif