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 = $(X_CFLAGS) $(PANGOCAIRO_CFLAGS) $(CONFUSE_CFLAGS) $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) $(AWESOME_CFLAGS) $(imlib2_CFLAGS)
112 bin_PROGRAMS += awesome
114 common/socket.c common/socket.h \
115 common/swindow.c common/swindow.h \
116 common/version.c common/version.h \
117 common/util.c common/util.h \
118 common/xutil.c common/xutil.h \
119 common/configopts.h common/configopts.c \
120 common/xscreen.h common/xscreen.c \
124 titlebar.c titlebar.h \
125 placement.c placement.h \
127 common/draw.c common/draw.h \
130 awesome.c awesome.h \
134 statusbar.c statusbar.h \
141 awesome_SOURCES += $(LAYOUTS)
142 awesome_SOURCES += $(WIDGETS)
143 awesome_LDADD = $(X_LIBS) $(PANGOCAIRO_LIBS) $(CONFUSE_LIBS) $(XRANDR_LIBS) $(XINERAMA_LIBS) $(imlib2_LIBS)
145 bin_PROGRAMS += awesome-client
146 awesome_client_SOURCES = \
148 common/socket.c common/socket.h \
149 common/version.c common/version.h \
150 common/util.c common/util.h
152 bin_PROGRAMS += awesome-message
153 awesome_message_SOURCES = \
154 common/swindow.c common/swindow.h \
155 common/draw.c common/draw.h \
156 common/util.h common/util.c \
157 common/version.h common/version.c \
158 common/configopts.h common/configopts.c \
159 common/xscreen.h common/xscreen.c \
162 awesome_message_LDADD = $(X_LIBS) $(PANGOCAIRO_LIBS) $(CONFUSE_LIBS) $(XINERAMA_LIBS) $(imlib2_LIBS)
164 bin_PROGRAMS += awesome-menu
165 awesome_menu_SOURCES = \
166 common/swindow.c common/swindow.h \
167 common/draw.c common/draw.h \
168 common/util.h common/util.c \
169 common/version.h common/version.c \
170 common/configopts.h common/configopts.c \
171 common/xutil.h common/xutil.c \
174 awesome_menu_LDADD = $(X_LIBS) $(PANGOCAIRO_LIBS) $(CONFUSE_LIBS) $(XINERAMA_LIBS) $(imlib2_LIBS)
179 man_MANS += awesome.1
180 man_MANS += awesome-client.1
181 man_MANS += awesome-message.1
182 man_MANS += awesome-menu.1
183 man_MANS += awesomerc.5
188 EXTRA_DIST += awesome.1.txt
189 EXTRA_DIST += awesome-client.1.txt
190 EXTRA_DIST += awesome-message.1.txt
191 EXTRA_DIST += awesome-menu.1.txt
192 EXTRA_DIST += awesomerc.5.txt
194 dist_iconslayouts_DATA += icons/layouts/dwindle.png
195 dist_iconslayouts_DATA += icons/layouts/dwindlew.png
196 dist_iconslayouts_DATA += icons/layouts/floating.png
197 dist_iconslayouts_DATA += icons/layouts/floatingw.png
198 dist_iconslayouts_DATA += icons/layouts/max.png
199 dist_iconslayouts_DATA += icons/layouts/maxw.png
200 dist_iconslayouts_DATA += icons/layouts/spiral.png
201 dist_iconslayouts_DATA += icons/layouts/spiralw.png
202 dist_iconslayouts_DATA += icons/layouts/tile.png
203 dist_iconslayouts_DATA += icons/layouts/tilebottom.png
204 dist_iconslayouts_DATA += icons/layouts/tilebottomw.png
205 dist_iconslayouts_DATA += icons/layouts/tileleft.png
206 dist_iconslayouts_DATA += icons/layouts/tileleftw.png
207 dist_iconslayouts_DATA += icons/layouts/tiletop.png
208 dist_iconslayouts_DATA += icons/layouts/tiletopw.png
209 dist_iconslayouts_DATA += icons/layouts/tilew.png
212 rm -f awesome*.1 awesome*.1.xml awesome*.5 awesome*.5.xml
214 SUFFIXES += .1.xml .1
215 SUFFIXES += .5.xml .5
223 SUFFIXES += .1.txt .1.xml
224 SUFFIXES += .5.txt .5.xml
227 $(ASCIIDOC) -d manpage -b docbook -o $@ $<
229 $(ASCIIDOC) -d manpage -b docbook -o $@ $<
233 # Check that package version matches git version before creating dist tarballs
234 dist-hook: git-version-check
235 distcheck-hook: git-version-check
237 # Note: We cannot run autogen.sh from here, because we would need some way to
238 # restart the whole dist process from the start and there is none.
239 EXTRA_DIST += build-utils/package-version
241 @git_ver=`$(top_srcdir)/build-utils/package-version $(top_srcdir) version-stamp`; \
242 if test "x$${git_ver}" = "x$(PACKAGE_VERSION)"; then :; else \
243 echo "ERROR: PACKAGE_VERSION and 'git describe' version do not match:"; \
244 echo " current 'git describe' version: $${git_ver}"; \
245 echo " current PACKAGE_VERSION: $(PACKAGE_VERSION)"; \
246 echo "Update PACKAGE_VERSION by running $(top_srcdir)/autogen.sh."; \
250 # Version stamp files can only exist in tarball source trees.
252 # So there is no need to generate them anywhere else or to clean them
255 echo "$(PACKAGE_VERSION)" > "$(distdir)/version-stamp"
257 EXTRA_DIST += awesome.doxygen.in
259 # Workaround for buggy pre-1.5.3 doxygen.
261 # Some pre-1.5.3 versions of doxygen segfault on reading these lines.
262 # Call make with DOXYGEN_SEGFAULT=-segfault as a workaround.
263 CLEANFILES += awesome.doxygen-segfault
264 awesome.doxygen-segfault: awesome.doxygen
265 $(SED) '/^QT_AUTOBRIEF/d; /^EXTRACT_ANON_NSPACES/d; /^HTML_DYNAMIC_SECTIONS/d' \
266 < awesome.doxygen > awesome.doxygen-segfault
269 doc: doc/html/index.html
271 doc/html/index.html: awesome.doxygen$(DOXYGEN_SEGFAULT) $(awesome_SOURCES) $(awesome_client_SOURCES)
272 $(DOXYGEN) awesome.doxygen$(DOXYGEN_SEGFAULT)
276 # Presuming we are running awesome on this screen, and this is screen 0, ...
277 # ...we replace the running awesome instance by a freshly compiled one.
278 restart-uninstalled: awesome awesome-client
279 screen=`echo "$${DISPLAY}" | sed 's/.*:[0-9]\.\([0-9]*\)$$/\1/; s/.*:\([0-9]*\)$$/0/'`; \
280 echo "$${screen}" exec "$${PWD}/awesome" | "$${PWD}/awesome-client"
282 # ...we replace the running awesome instance by the last installed one.
284 screen=`echo "$${DISPLAY}" | sed 's/.*:[0-9]\.\([0-9]*\)$$/\1/; s/.*:\([0-9]*\)$$/0/'`; \
285 echo "$${screen}" exec "$(DESTDIR)$(bindir)/awesome" | "$(DESTDIR)$(bindir)/awesome-client"