use Area in Widget
[awesome.git] / Makefile.am
blobd7cc60f01e265badb9f22c798f1a407b5f30883e
1 BUILT_SOURCES =
2 CLEANFILES =
3 EXTRA_DIST =
4 SUFFIXES =
5 bin_PROGRAMS =
6 doc_DATA =
7 man_MANS =
9 LAYOUTS =
10 WIDGETS =
12 include layouts/Makefile-files
13 include widgets/Makefile-files
15 EXTRA_DIST += awesomerc
16 doc_DATA   += awesomerc
18 doc_DATA   += README
20 EXTRA_DIST += LICENSE
21 doc_DATA   += LICENSE
23 EXTRA_DIST += STYLE
24 doc_DATA   += STYLE
26 CLEANFILES    += defconfig.h
27 BUILT_SOURCES += defconfig.h
28 defconfig.h: $(srcdir)/awesomerc
29         @echo "generating defconfig.h from $(srcdir)/awesomerc"
30         @echo "#define AWESOME_DEFAULT_CONFIG \\" > defconfig.h
31         @echo -n "\"" >> defconfig.h
32         @$(SED) 's,\\,\\\\,g;s/$$/ \\/;s/"/\\"/g' "$(srcdir)/awesomerc" >> defconfig.h
33         @echo "\"" >> defconfig.h
35 AWESOME_CFLAGS = -std=gnu99 -ggdb3 -pipe \
36                  -Wall -Wextra \
37                  -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare \
38                  -Wunused -Winit-self -Wpointer-arith -Wredundant-decls \
39                  -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn
40 AM_CPPFLAGS = $(XFT_CFLAGS) $(X_CFLAGS) $(CAIRO_CFLAGS) $(CONFUSE_CFLAGS) $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) $(AWESOME_CFLAGS)
42 bin_PROGRAMS += awesome
43 awesome_SOURCES = \
44         client.c client.h \
45         focus.c focus.h \
46         draw.c draw.h \
47         event.c event.h \
48         layout.c layout.h \
49         awesome.c awesome.h \
50         tag.c tag.h \
51         util.c util.h \
52         xutil.c xutil.h \
53         config.c config.h \
54         screen.c screen.h \
55         statusbar.c statusbar.h \
56         uicb.c uicb.h \
57         window.c window.h \
58         rules.c rules.h \
59         mouse.c mouse.h \
60         awesome-client-common.c \
61         widget.c widget.h \
62         ewmh.c ewmh.h
63 awesome_SOURCES += $(LAYOUTS)
64 awesome_SOURCES += $(WIDGETS)
65 awesome_LDADD = $(XFT_LIBS) $(X_LIBS) $(CAIRO_LIBS) $(CONFUSE_LIBS) $(XRANDR_LIBS) $(XINERAMA_LIBS)
67 bin_PROGRAMS += awesome-client
68 awesome_client_SOURCES = \
69         awesome-client.c awesome-client.h \
70         awesome-client-common.c \
71         util.c util.h
73 EXTRA_DIST += awesome.1.txt
74 man_MANS   += awesome.1
76 EXTRA_DIST += awesome-client.1.txt
77 man_MANS   += awesome-client.1
79 EXTRA_DIST += awesomerc.1.txt
80 man_MANS   += awesomerc.1
82 clean-local:
83         rm -f awesome*.1 awesome*.1.xml
85 SUFFIXES += .1.xml .1
86 if HAVE_XMLTO
87 .1.xml.1:
88         $(XMLTO) man $<
89 endif
91 SUFFIXES += .1.txt .1.xml
92 if HAVE_ASCIIDOC
93 .1.txt.1.xml:
94         $(ASCIIDOC) -d manpage -b docbook -o $@ $<
95 endif
97 EXTRA_DIST += awesome.doxygen.in
99 # Workaround for buggy pre-1.5.3 doxygen.
101 # Some pre-1.5.3 versions of doxygen segfault on reading these lines.
102 # Call make with DOXYGEN_SEGFAULT=-segfault as a workaround.
103 CLEANFILES += awesome.doxygen-segfault
104 awesome.doxygen-segfault: awesome.doxygen
105         $(SED) '/^QT_AUTOBRIEF/d; /^EXTRACT_ANON_NSPACES/d; /^HTML_DYNAMIC_SECTIONS/d' \
106                 < awesome.doxygen > awesome.doxygen-segfault
108 if HAVE_DOXYGEN
109 doc: doc/html/index.html
111 doc/html/index.html: awesome.doxygen$(DOXYGEN_SEGFAULT) $(awesome_SOURCES) $(awesome_client_SOURCES)
112         $(DOXYGEN) awesome.doxygen$(DOXYGEN_SEGFAULT)
113 endif