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
46 EXTRA_DIST += awesomerc.in
47 CLEANFILES += awesomerc
48 BUILT_SOURCES += awesomerc
50 awesomerc: $(srcdir)/awesomerc.in
51 $(SED) -e "s|[@]iconslayoutsdir@|$(iconslayoutsdir)|" \
52 < $(srcdir)/awesomerc.in > awesomerc
55 CLEANFILES += defconfig.h
56 BUILT_SOURCES += defconfig.h
57 defconfig.h: awesomerc
58 @echo "generating defconfig.h from awesomerc"
59 @echo "#define AWESOME_DEFAULT_CONFIG \\" > defconfig.h
60 @echo -n "\"" >> defconfig.h
61 @$(SED) 's,\\,\\\\,g;s/$$/ \\/;s/"/\\"/g' "awesomerc" >> defconfig.h
62 @echo "\"" >> defconfig.h
65 # If you are using gcc, and want to deactivate this default set of
66 # compile flags, run make with AWESOME_CFLAGS="".
67 AWESOME_CFLAGS = -std=gnu99 -pipe \
69 -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare \
70 -Wunused -Winit-self -Wpointer-arith -Wredundant-decls \
71 -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn
73 AM_CPPFLAGS = $(XFT_CFLAGS) $(X_CFLAGS) $(CAIRO_CFLAGS) $(CONFUSE_CFLAGS) $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) $(AWESOME_CFLAGS)
75 bin_PROGRAMS += awesome
88 statusbar.c statusbar.h \
93 awesome-client-common.c \
96 awesome_SOURCES += $(LAYOUTS)
97 awesome_SOURCES += $(WIDGETS)
98 awesome_LDADD = $(XFT_LIBS) $(X_LIBS) $(CAIRO_LIBS) $(CONFUSE_LIBS) $(XRANDR_LIBS) $(XINERAMA_LIBS)
100 bin_PROGRAMS += awesome-client
101 awesome_client_SOURCES = \
102 awesome-client.c awesome-client.h \
103 awesome-client-common.c \
107 EXTRA_DIST += awesome.1.txt
108 man_MANS += awesome.1
110 EXTRA_DIST += awesome-client.1.txt
111 man_MANS += awesome-client.1
113 EXTRA_DIST += awesomerc.1.txt
114 man_MANS += awesomerc.1
116 dist_iconslayouts_DATA += icons/layouts/dwindle.png
117 dist_iconslayouts_DATA += icons/layouts/dwindlew.png
118 dist_iconslayouts_DATA += icons/layouts/floating.png
119 dist_iconslayouts_DATA += icons/layouts/floatingw.png
120 dist_iconslayouts_DATA += icons/layouts/max.png
121 dist_iconslayouts_DATA += icons/layouts/maxw.png
122 dist_iconslayouts_DATA += icons/layouts/spiral.png
123 dist_iconslayouts_DATA += icons/layouts/spiralw.png
124 dist_iconslayouts_DATA += icons/layouts/tile.png
125 dist_iconslayouts_DATA += icons/layouts/tileleft.png
126 dist_iconslayouts_DATA += icons/layouts/tileleftw.png
127 dist_iconslayouts_DATA += icons/layouts/tilew.png
130 rm -f awesome*.1 awesome*.1.xml
132 SUFFIXES += .1.xml .1
138 SUFFIXES += .1.txt .1.xml
141 $(ASCIIDOC) -d manpage -b docbook -o $@ $<
145 # Check that package version matches git version before creating dist tarballs
146 dist-hook: git-version-check
147 distcheck-hook: git-version-check
150 git_ver=`{ test -d $(top_srcdir)/.git && git --git-dir=$(top_srcdir)/.git describe 2> /dev/null; } || echo devel`; \
151 if test "x$${git_ver}" = "x$(PACKAGE_VERSION)" -o "x$${git_ver}" = "xv${PACKAGE_VERSION}"; then :; else \
152 echo "ERROR: The PACKAGE_VERSION and the 'git describe' version do not match:"; \
153 echo " current git version: $${git_ver}"; \
154 echo " current package version: $(PACKAGE_VERSION)"; \
155 echo "You can update the PACKAGE_VERSION by running $(top_srcdir)/autogen.sh."; \
160 EXTRA_DIST += awesome.doxygen.in
162 # Workaround for buggy pre-1.5.3 doxygen.
164 # Some pre-1.5.3 versions of doxygen segfault on reading these lines.
165 # Call make with DOXYGEN_SEGFAULT=-segfault as a workaround.
166 CLEANFILES += awesome.doxygen-segfault
167 awesome.doxygen-segfault: awesome.doxygen
168 $(SED) '/^QT_AUTOBRIEF/d; /^EXTRACT_ANON_NSPACES/d; /^HTML_DYNAMIC_SECTIONS/d' \
169 < awesome.doxygen > awesome.doxygen-segfault
172 doc: doc/html/index.html
174 doc/html/index.html: awesome.doxygen$(DOXYGEN_SEGFAULT) $(awesome_SOURCES) $(awesome_client_SOURCES)
175 $(DOXYGEN) awesome.doxygen$(DOXYGEN_SEGFAULT)