12 include layouts/Makefile-files
13 include widgets/Makefile-files
15 EXTRA_DIST += awesomerc
26 CLEANFILES += defconfig.h
27 BUILT_SOURCES += defconfig.h
28 defconfig.h: $(srcdir)/awesomerc
29 @echo "generating defconfig.h from $(srcdir)/awesomerc"
30 @echo "#define AWESOME_DEFAULT_CONFIG \\" > defconfig.h
31 @echo -n "\"" >> defconfig.h
32 @$(SED) 's,\\,\\\\,g;s/$$/ \\/;s/"/\\"/g' "$(srcdir)/awesomerc" >> defconfig.h
33 @echo "\"" >> defconfig.h
35 AWESOME_CFLAGS = -std=gnu99 -ggdb3 -pipe \
37 -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare \
38 -Wunused -Winit-self -Wpointer-arith -Wredundant-decls \
39 -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn
40 AM_CPPFLAGS = $(XFT_CFLAGS) $(X_CFLAGS) $(CAIRO_CFLAGS) $(CONFUSE_CFLAGS) $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) $(AWESOME_CFLAGS)
42 bin_PROGRAMS += awesome
55 statusbar.c statusbar.h \
60 awesome-client-common.c \
63 awesome_SOURCES += $(LAYOUTS)
64 awesome_SOURCES += $(WIDGETS)
65 awesome_LDADD = $(XFT_LIBS) $(X_LIBS) $(CAIRO_LIBS) $(CONFUSE_LIBS) $(XRANDR_LIBS) $(XINERAMA_LIBS)
67 bin_PROGRAMS += awesome-client
68 awesome_client_SOURCES = \
69 awesome-client.c awesome-client.h \
70 awesome-client-common.c \
73 EXTRA_DIST += awesome.1.txt
76 EXTRA_DIST += awesome-client.1.txt
77 man_MANS += awesome-client.1
79 EXTRA_DIST += awesomerc.1.txt
80 man_MANS += awesomerc.1
83 rm -f awesome*.1 awesome*.1.xml
91 SUFFIXES += .1.txt .1.xml
94 $(ASCIIDOC) -d manpage -b docbook -o $@ $<
97 EXTRA_DIST += awesome.doxygen.in
99 # Workaround for buggy pre-1.5.3 doxygen.
101 # Some pre-1.5.3 versions of doxygen segfault on reading these lines.
102 # Call make with DOXYGEN_SEGFAULT=-segfault as a workaround.
103 CLEANFILES += awesome.doxygen-segfault
104 awesome.doxygen-segfault: awesome.doxygen
105 $(SED) '/^QT_AUTOBRIEF/d; /^EXTRACT_ANON_NSPACES/d; /^HTML_DYNAMIC_SECTIONS/d' \
106 < awesome.doxygen > awesome.doxygen-segfault
109 doc: doc/html/index.html
111 doc/html/index.html: awesome.doxygen$(DOXYGEN_SEGFAULT) $(awesome_SOURCES) $(awesome_client_SOURCES)
112 $(DOXYGEN) awesome.doxygen$(DOXYGEN_SEGFAULT)