fix some cache flags
[awesome.git] / Makefile.am
blobdfd7ac96d307313e7b3b41e5713f69d89a616eb0
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
41 doc_DATA   += LICENSE
43 EXTRA_DIST += STYLE
44 doc_DATA   += STYLE
47 EXTRA_DIST    += awesomerc.in
48 CLEANFILES    += awesomerc
49 BUILT_SOURCES += awesomerc
50 doc_DATA      += awesomerc
51 awesomerc: $(srcdir)/awesomerc.in
52         $(SED) -e "s|[@]iconslayoutsdir@|$(iconslayoutsdir)|" \
53                 < $(srcdir)/awesomerc.in > awesomerc
56 CLEANFILES    += defconfig.h
57 BUILT_SOURCES += defconfig.h
58 defconfig.h: awesomerc
59         @echo "generating defconfig.h from awesomerc"
60         @echo "#define AWESOME_DEFAULT_CONFIG \\" > defconfig.h
61         @echo -n "\"" >> defconfig.h
62         @$(SED) 's,\\,\\\\,g;s/$$/ \\/;s/"/\\"/g' "awesomerc" >> defconfig.h
63         @echo "\"" >> defconfig.h
65 if USING_GCC
66 # If you are using gcc, and want to deactivate this default set of
67 # compile flags, run make with AWESOME_CFLAGS="".
68 AWESOME_CFLAGS = -std=gnu99 -pipe \
69                  -Wall -Wextra \
70                  -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare \
71                  -Wunused -Winit-self -Wpointer-arith -Wredundant-decls \
72                  -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn
73 endif
74 AM_CPPFLAGS = $(XFT_CFLAGS) $(X_CFLAGS) $(CAIRO_CFLAGS) $(CONFUSE_CFLAGS) $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) $(AWESOME_CFLAGS)
76 bin_PROGRAMS += awesome
77 awesome_SOURCES = \
78         client.c client.h \
79         focus.c focus.h \
80         draw.c draw.h \
81         event.c event.h \
82         layout.c layout.h \
83         awesome.c awesome.h \
84         tag.c tag.h \
85         util.c util.h \
86         xutil.c xutil.h \
87         config.c config.h \
88         screen.c screen.h \
89         statusbar.c statusbar.h \
90         uicb.c uicb.h \
91         window.c window.h \
92         rules.c rules.h \
93         mouse.c mouse.h \
94         awesome-client-common.c \
95         widget.c widget.h \
96         ewmh.c ewmh.h
97 awesome_SOURCES += $(LAYOUTS)
98 awesome_SOURCES += $(WIDGETS)
99 awesome_LDADD = $(XFT_LIBS) $(X_LIBS) $(CAIRO_LIBS) $(CONFUSE_LIBS) $(XRANDR_LIBS) $(XINERAMA_LIBS)
101 bin_PROGRAMS += awesome-client
102 awesome_client_SOURCES = \
103         awesome-client.c awesome-client.h \
104         awesome-client-common.c \
105         util.c util.h
108 EXTRA_DIST += awesome.1.txt
109 man_MANS   += awesome.1
111 EXTRA_DIST += awesome-client.1.txt
112 man_MANS   += awesome-client.1
114 EXTRA_DIST += awesomerc.1.txt
115 man_MANS   += awesomerc.1
117 dist_iconslayouts_DATA += icons/layouts/dwindle.png
118 dist_iconslayouts_DATA += icons/layouts/dwindlew.png
119 dist_iconslayouts_DATA += icons/layouts/floating.png
120 dist_iconslayouts_DATA += icons/layouts/floatingw.png
121 dist_iconslayouts_DATA += icons/layouts/max.png
122 dist_iconslayouts_DATA += icons/layouts/maxw.png
123 dist_iconslayouts_DATA += icons/layouts/spiral.png
124 dist_iconslayouts_DATA += icons/layouts/spiralw.png
125 dist_iconslayouts_DATA += icons/layouts/tile.png
126 dist_iconslayouts_DATA += icons/layouts/tileleft.png
127 dist_iconslayouts_DATA += icons/layouts/tileleftw.png
128 dist_iconslayouts_DATA += icons/layouts/tilew.png
130 clean-local:
131         rm -f awesome*.1 awesome*.1.xml
133 SUFFIXES += .1.xml .1
134 if HAVE_XMLTO
135 .1.xml.1:
136         $(XMLTO) man $<
137 endif
139 SUFFIXES += .1.txt .1.xml
140 if HAVE_ASCIIDOC
141 .1.txt.1.xml:
142         $(ASCIIDOC) -d manpage -b docbook -o $@ $<
143 endif
146 EXTRA_DIST += awesome.doxygen.in
148 # Workaround for buggy pre-1.5.3 doxygen.
150 # Some pre-1.5.3 versions of doxygen segfault on reading these lines.
151 # Call make with DOXYGEN_SEGFAULT=-segfault as a workaround.
152 CLEANFILES += awesome.doxygen-segfault
153 awesome.doxygen-segfault: awesome.doxygen
154         $(SED) '/^QT_AUTOBRIEF/d; /^EXTRACT_ANON_NSPACES/d; /^HTML_DYNAMIC_SECTIONS/d' \
155                 < awesome.doxygen > awesome.doxygen-segfault
157 if HAVE_DOXYGEN
158 doc: doc/html/index.html
160 doc/html/index.html: awesome.doxygen$(DOXYGEN_SEGFAULT) $(awesome_SOURCES) $(awesome_client_SOURCES)
161         $(DOXYGEN) awesome.doxygen$(DOXYGEN_SEGFAULT)
162 endif