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/iconbox.c
31 WIDGETS += widgets/focusicon.c
32 WIDGETS += widgets/progressbar.c
33 WIDGETS += widgets/tasklist.c
34 WIDGETS += widgets/graph.c
49 EXTRA_DIST += awesomerc.in
50 CLEANFILES += awesomerc
51 BUILT_SOURCES += awesomerc
53 awesomerc: $(srcdir)/awesomerc.in
54 $(SED) -e "s|[@]iconslayoutsdir@|$(iconslayoutsdir)|" \
55 < $(srcdir)/awesomerc.in > awesomerc
58 CLEANFILES += defconfig.h
59 BUILT_SOURCES += defconfig.h
60 defconfig.h: awesomerc
61 @echo "generating defconfig.h from awesomerc"
62 @echo "static const char *AWESOME_DEFAULT_CONFIG = " > defconfig.h
63 @echo -n "\"" >> defconfig.h
64 @$(SED) 's,\\,\\\\,g;s/$$/ \\n\\/;s/"/\\"/g' "awesomerc" >> defconfig.h
65 @echo "\";" >> defconfig.h
67 CLEANFILES += uicbgen.h
68 BUILT_SOURCES += uicbgen.h
69 EXTRA_DIST += build-utils/uicbgen.sh
70 uicbgen.h: $(awesome_SOURCES)
71 @echo "generating uicbgen.h from headers file"
72 $(top_srcdir)/build-utils/uicbgen.sh "$(top_srcdir)" > uicbgen.h
74 CLEANFILES += layoutgen.h
75 BUILT_SOURCES += layoutgen.h
76 EXTRA_DIST += build-utils/layoutgen.sh
77 layoutgen.h: $(awesome_SOURCES)
78 @echo "generating layoutgen.h from layouts headers file"
79 $(top_srcdir)/build-utils/layoutgen.sh "$(top_srcdir)" > layoutgen.h
81 CLEANFILES += widgetgen.h
82 BUILT_SOURCES += widgetgen.h
83 EXTRA_DIST += build-utils/widgetgen.sh
85 @echo "generating widgetgen.h from widget.h"
86 $(top_srcdir)/build-utils/widgetgen.sh "$(top_srcdir)" > widgetgen.h
88 A_V = awesome-version-internal
89 CLEANFILES += $(A_V).h
90 BUILT_SOURCES += $(A_V).h.stamp
92 @current_ver=`$(SHELL) $(top_srcdir)/build-utils/package-version $(top_srcdir) version-stamp`; \
93 { echo '#ifndef AWESOME_VERSION_INTERNAL'; \
94 echo "#define AWESOME_VERSION_INTERNAL \"$${current_ver}\""; \
95 echo "#endif"; } > "$(A_V).h.new"
96 @if test -f "$(A_V).h" \
97 && cmp "$(A_V).h.new" "$(A_V).h"; then :; \
98 else cat "$(A_V).h.new" > "$(A_V).h"; fi; \
102 # If you are using gcc, and want to deactivate this default set of
103 # compile flags, run make with AWESOME_CFLAGS="".
104 AWESOME_CFLAGS = -std=gnu99 -pipe \
106 -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare \
107 -Wunused -Winit-self -Wpointer-arith -Wredundant-decls \
108 -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn
110 AM_CPPFLAGS = $(XFT_CFLAGS) $(X_CFLAGS) $(CAIRO_CFLAGS) $(CONFUSE_CFLAGS) $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) $(AWESOME_CFLAGS)
112 bin_PROGRAMS += awesome
115 placement.c placement.h \
116 common/version.c common/version.h \
118 common/draw.c common/draw.h \
121 awesome.c awesome.h \
123 common/util.c common/util.h \
127 statusbar.c statusbar.h \
132 common/socket.c common/socket.h \
133 common/swindow.c common/swindow.h \
136 common/list.h structs.h \
137 common/configopts.h common/configopts.c
138 awesome_SOURCES += $(LAYOUTS)
139 awesome_SOURCES += $(WIDGETS)
140 awesome_LDADD = $(XFT_LIBS) $(X_LIBS) $(CAIRO_LIBS) $(CONFUSE_LIBS) $(XRANDR_LIBS) $(XINERAMA_LIBS)
142 bin_PROGRAMS += awesome-client
143 awesome_client_SOURCES = \
145 common/socket.c common/socket.h \
146 common/version.c common/version.h \
147 common/util.c common/util.h
149 bin_PROGRAMS += awesome-message
150 awesome_message_SOURCES = \
151 common/swindow.c common/swindow.h \
152 common/draw.c common/draw.h \
153 common/util.h common/util.c \
154 common/version.h common/version.c \
155 common/configopts.h common/configopts.c \
158 awesome_message_LDADD = $(XFT_LIBS) $(X_LIBS) $(CAIRO_LIBS) $(CONFUSE_LIBS)
163 man_MANS += awesome.1
164 man_MANS += awesome-client.1
165 man_MANS += awesomerc.5
170 EXTRA_DIST += awesome.1.txt
171 EXTRA_DIST += awesome-client.1.txt
172 EXTRA_DIST += awesomerc.5.txt
174 dist_iconslayouts_DATA += icons/layouts/dwindle.png
175 dist_iconslayouts_DATA += icons/layouts/dwindlew.png
176 dist_iconslayouts_DATA += icons/layouts/floating.png
177 dist_iconslayouts_DATA += icons/layouts/floatingw.png
178 dist_iconslayouts_DATA += icons/layouts/max.png
179 dist_iconslayouts_DATA += icons/layouts/maxw.png
180 dist_iconslayouts_DATA += icons/layouts/spiral.png
181 dist_iconslayouts_DATA += icons/layouts/spiralw.png
182 dist_iconslayouts_DATA += icons/layouts/tile.png
183 dist_iconslayouts_DATA += icons/layouts/tilebottom.png
184 dist_iconslayouts_DATA += icons/layouts/tilebottomw.png
185 dist_iconslayouts_DATA += icons/layouts/tileleft.png
186 dist_iconslayouts_DATA += icons/layouts/tileleftw.png
187 dist_iconslayouts_DATA += icons/layouts/tiletop.png
188 dist_iconslayouts_DATA += icons/layouts/tiletopw.png
189 dist_iconslayouts_DATA += icons/layouts/tilew.png
192 rm -f awesome*.1 awesome*.1.xml awesome*.5 awesome*.5.xml
194 SUFFIXES += .1.xml .1
195 SUFFIXES += .5.xml .5
203 SUFFIXES += .1.txt .1.xml
204 SUFFIXES += .5.txt .5.xml
207 $(ASCIIDOC) -d manpage -b docbook -o $@ $<
209 $(ASCIIDOC) -d manpage -b docbook -o $@ $<
213 # Check that package version matches git version before creating dist tarballs
214 dist-hook: git-version-check
215 distcheck-hook: git-version-check
217 # Note: We cannot run autogen.sh from here, because we would need some way to
218 # restart the whole dist process from the start and there is none.
219 EXTRA_DIST += build-utils/package-version
221 @git_ver=`$(top_srcdir)/build-utils/package-version $(top_srcdir) version-stamp`; \
222 if test "x$${git_ver}" = "x$(PACKAGE_VERSION)"; then :; else \
223 echo "ERROR: PACKAGE_VERSION and 'git describe' version do not match:"; \
224 echo " current 'git describe' version: $${git_ver}"; \
225 echo " current PACKAGE_VERSION: $(PACKAGE_VERSION)"; \
226 echo "Update PACKAGE_VERSION by running $(top_srcdir)/autogen.sh."; \
230 # Version stamp files can only exist in tarball source trees.
232 # So there is no need to generate them anywhere else or to clean them
235 echo "$(PACKAGE_VERSION)" > "$(distdir)/version-stamp"
237 EXTRA_DIST += awesome.doxygen.in
239 # Workaround for buggy pre-1.5.3 doxygen.
241 # Some pre-1.5.3 versions of doxygen segfault on reading these lines.
242 # Call make with DOXYGEN_SEGFAULT=-segfault as a workaround.
243 CLEANFILES += awesome.doxygen-segfault
244 awesome.doxygen-segfault: awesome.doxygen
245 $(SED) '/^QT_AUTOBRIEF/d; /^EXTRACT_ANON_NSPACES/d; /^HTML_DYNAMIC_SECTIONS/d' \
246 < awesome.doxygen > awesome.doxygen-segfault
249 doc: doc/html/index.html
251 doc/html/index.html: awesome.doxygen$(DOXYGEN_SEGFAULT) $(awesome_SOURCES) $(awesome_client_SOURCES)
252 $(DOXYGEN) awesome.doxygen$(DOXYGEN_SEGFAULT)