8 iconslayoutsdir = $(pkgdatadir)/icons/layouts
9 dist_iconslayouts_DATA =
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
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
47 EXTRA_DIST += awesomerc.in
48 CLEANFILES += awesomerc
49 BUILT_SOURCES += 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
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 \
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
74 AM_CPPFLAGS = $(XFT_CFLAGS) $(X_CFLAGS) $(CAIRO_CFLAGS) $(CONFUSE_CFLAGS) $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) $(AWESOME_CFLAGS)
76 bin_PROGRAMS += awesome
89 statusbar.c statusbar.h \
94 awesome-client-common.c \
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 \
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
131 rm -f awesome*.1 awesome*.1.xml
133 SUFFIXES += .1.xml .1
139 SUFFIXES += .1.txt .1.xml
142 $(ASCIIDOC) -d manpage -b docbook -o $@ $<
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
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)