2008-01-04 20:49:49 +01:00
|
|
|
BUILT_SOURCES =
|
|
|
|
CLEANFILES =
|
|
|
|
EXTRA_DIST =
|
|
|
|
SUFFIXES =
|
|
|
|
bin_PROGRAMS =
|
|
|
|
doc_DATA =
|
|
|
|
man_MANS =
|
2008-01-08 21:39:40 +01:00
|
|
|
iconslayoutsdir = $(pkgdatadir)/icons/layouts
|
2008-01-05 20:15:34 +01:00
|
|
|
dist_iconslayouts_DATA =
|
2008-01-04 22:10:42 +01:00
|
|
|
|
2008-01-04 20:49:49 +01:00
|
|
|
LAYOUTS =
|
2008-01-04 22:10:42 +01:00
|
|
|
|
|
|
|
LAYOUTS += layouts/tile.c
|
|
|
|
LAYOUTS += layouts/tile.h
|
|
|
|
|
|
|
|
LAYOUTS += layouts/floating.c
|
|
|
|
LAYOUTS += layouts/floating.h
|
|
|
|
|
|
|
|
LAYOUTS += layouts/max.c
|
|
|
|
LAYOUTS += layouts/max.h
|
|
|
|
|
|
|
|
LAYOUTS += layouts/fibonacci.c
|
|
|
|
LAYOUTS += layouts/fibonacci.h
|
|
|
|
|
|
|
|
|
2008-01-04 20:49:49 +01:00
|
|
|
WIDGETS =
|
2008-01-04 22:10:42 +01:00
|
|
|
WIDGETS += widgets/taglist.c
|
|
|
|
WIDGETS += widgets/layoutinfo.c
|
|
|
|
WIDGETS += widgets/textbox.c
|
|
|
|
WIDGETS += widgets/focustitle.c
|
|
|
|
WIDGETS += widgets/iconbox.c
|
|
|
|
WIDGETS += widgets/netwmicon.c
|
|
|
|
WIDGETS += widgets/progressbar.c
|
|
|
|
WIDGETS += widgets/tasklist.c
|
2008-01-06 18:23:56 +01:00
|
|
|
WIDGETS += widgets/graph.c
|
2008-01-04 20:49:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
doc_DATA += README
|
|
|
|
|
|
|
|
EXTRA_DIST += LICENSE
|
|
|
|
|
|
|
|
EXTRA_DIST += STYLE
|
|
|
|
doc_DATA += STYLE
|
|
|
|
|
2008-01-04 22:10:42 +01:00
|
|
|
|
2008-01-08 21:39:40 +01:00
|
|
|
EXTRA_DIST += awesomerc.in
|
|
|
|
CLEANFILES += awesomerc
|
|
|
|
BUILT_SOURCES += awesomerc
|
|
|
|
doc_DATA += awesomerc
|
|
|
|
awesomerc: $(srcdir)/awesomerc.in
|
|
|
|
$(SED) -e "s|[@]iconslayoutsdir@|$(iconslayoutsdir)|" \
|
|
|
|
< $(srcdir)/awesomerc.in > awesomerc
|
|
|
|
|
|
|
|
|
2008-01-04 20:49:49 +01:00
|
|
|
CLEANFILES += defconfig.h
|
|
|
|
BUILT_SOURCES += defconfig.h
|
2008-01-08 21:39:40 +01:00
|
|
|
defconfig.h: awesomerc
|
|
|
|
@echo "generating defconfig.h from awesomerc"
|
2008-01-04 20:49:49 +01:00
|
|
|
@echo "#define AWESOME_DEFAULT_CONFIG \\" > defconfig.h
|
|
|
|
@echo -n "\"" >> defconfig.h
|
2008-01-08 21:39:40 +01:00
|
|
|
@$(SED) 's,\\,\\\\,g;s/$$/ \\/;s/"/\\"/g' "awesomerc" >> defconfig.h
|
2008-01-04 20:49:49 +01:00
|
|
|
@echo "\"" >> defconfig.h
|
|
|
|
|
2008-01-15 16:52:30 +01:00
|
|
|
CLEANFILES += uicbgen.h
|
|
|
|
BUILT_SOURCES += uicbgen.h
|
2008-01-16 13:14:31 +01:00
|
|
|
EXTRA_DIST += build-utils/uicbgen.sh
|
2008-01-15 16:52:30 +01:00
|
|
|
uicbgen.h: $(awesome_SOURCES)
|
|
|
|
@echo "generating uicbgen.h from headers file"
|
2008-01-16 13:14:31 +01:00
|
|
|
$(top_srcdir)/build-utils/uicbgen.sh > $(top_srcdir)/uicbgen.h
|
2008-01-15 16:52:30 +01:00
|
|
|
|
2008-01-16 09:02:25 +01:00
|
|
|
CLEANFILES += layoutgen.h
|
|
|
|
BUILT_SOURCES += layoutgen.h
|
2008-01-16 13:14:31 +01:00
|
|
|
EXTRA_DIST += build-utils/layoutgen.sh
|
2008-01-16 09:02:25 +01:00
|
|
|
layoutgen.h: $(awesome_SOURCES)
|
|
|
|
@echo "generating layoutgen.h from layouts headers file"
|
2008-01-16 13:14:31 +01:00
|
|
|
$(top_srcdir)/build-utils/layoutgen.sh > $(top_srcdir)/layoutgen.h
|
2008-01-16 09:02:25 +01:00
|
|
|
|
2008-01-16 08:06:59 +01:00
|
|
|
CLEANFILES += widgetgen.h
|
|
|
|
BUILT_SOURCES += widgetgen.h
|
2008-01-16 13:14:31 +01:00
|
|
|
EXTRA_DIST += build-utils/widgetgen.sh
|
2008-01-16 08:06:59 +01:00
|
|
|
widgetgen.h: widget.h
|
|
|
|
@echo "generating widgetgen.h from widget.h"
|
2008-01-16 13:14:31 +01:00
|
|
|
$(top_srcdir)/build-utils/widgetgen.sh > $(top_srcdir)/widgetgen.h
|
2008-01-16 08:06:59 +01:00
|
|
|
|
2008-01-04 21:43:47 +01:00
|
|
|
if USING_GCC
|
|
|
|
# If you are using gcc, and want to deactivate this default set of
|
|
|
|
# compile flags, run make with AWESOME_CFLAGS="".
|
2008-01-09 09:38:00 +01:00
|
|
|
AWESOME_CFLAGS = -std=gnu99 -pipe \
|
2008-01-04 21:05:13 +01:00
|
|
|
-Wall -Wextra \
|
|
|
|
-Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare \
|
|
|
|
-Wunused -Winit-self -Wpointer-arith -Wredundant-decls \
|
|
|
|
-Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn
|
2008-01-04 21:43:47 +01:00
|
|
|
endif
|
2008-01-04 21:05:13 +01:00
|
|
|
AM_CPPFLAGS = $(XFT_CFLAGS) $(X_CFLAGS) $(CAIRO_CFLAGS) $(CONFUSE_CFLAGS) $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) $(AWESOME_CFLAGS)
|
2008-01-04 20:49:49 +01:00
|
|
|
|
|
|
|
bin_PROGRAMS += awesome
|
|
|
|
awesome_SOURCES = \
|
|
|
|
client.c client.h \
|
|
|
|
focus.c focus.h \
|
|
|
|
draw.c draw.h \
|
|
|
|
event.c event.h \
|
|
|
|
layout.c layout.h \
|
|
|
|
awesome.c awesome.h \
|
|
|
|
tag.c tag.h \
|
|
|
|
util.c util.h \
|
|
|
|
xutil.c xutil.h \
|
|
|
|
config.c config.h \
|
|
|
|
screen.c screen.h \
|
|
|
|
statusbar.c statusbar.h \
|
|
|
|
uicb.c uicb.h \
|
|
|
|
window.c window.h \
|
|
|
|
rules.c rules.h \
|
|
|
|
mouse.c mouse.h \
|
|
|
|
awesome-client-common.c \
|
|
|
|
widget.c widget.h \
|
2008-01-13 15:44:01 +01:00
|
|
|
ewmh.c ewmh.h \
|
|
|
|
list.h structs.h
|
2008-01-04 20:49:49 +01:00
|
|
|
awesome_SOURCES += $(LAYOUTS)
|
|
|
|
awesome_SOURCES += $(WIDGETS)
|
|
|
|
awesome_LDADD = $(XFT_LIBS) $(X_LIBS) $(CAIRO_LIBS) $(CONFUSE_LIBS) $(XRANDR_LIBS) $(XINERAMA_LIBS)
|
|
|
|
|
|
|
|
bin_PROGRAMS += awesome-client
|
2008-01-21 15:26:52 +01:00
|
|
|
AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = awesome-client$(EXEEXT)
|
2008-01-04 20:49:49 +01:00
|
|
|
awesome_client_SOURCES = \
|
|
|
|
awesome-client.c awesome-client.h \
|
|
|
|
awesome-client-common.c \
|
|
|
|
util.c util.h
|
|
|
|
|
2008-01-04 22:10:42 +01:00
|
|
|
|
2008-01-04 20:49:49 +01:00
|
|
|
EXTRA_DIST += awesome.1.txt
|
|
|
|
man_MANS += awesome.1
|
|
|
|
|
|
|
|
EXTRA_DIST += awesome-client.1.txt
|
|
|
|
man_MANS += awesome-client.1
|
|
|
|
|
|
|
|
EXTRA_DIST += awesomerc.1.txt
|
|
|
|
man_MANS += awesomerc.1
|
|
|
|
|
2008-01-05 20:15:34 +01:00
|
|
|
dist_iconslayouts_DATA += icons/layouts/dwindle.png
|
|
|
|
dist_iconslayouts_DATA += icons/layouts/dwindlew.png
|
|
|
|
dist_iconslayouts_DATA += icons/layouts/floating.png
|
|
|
|
dist_iconslayouts_DATA += icons/layouts/floatingw.png
|
|
|
|
dist_iconslayouts_DATA += icons/layouts/max.png
|
|
|
|
dist_iconslayouts_DATA += icons/layouts/maxw.png
|
|
|
|
dist_iconslayouts_DATA += icons/layouts/spiral.png
|
|
|
|
dist_iconslayouts_DATA += icons/layouts/spiralw.png
|
|
|
|
dist_iconslayouts_DATA += icons/layouts/tile.png
|
2008-01-14 00:37:46 +01:00
|
|
|
dist_iconslayouts_DATA += icons/layouts/tiledown.png
|
|
|
|
dist_iconslayouts_DATA += icons/layouts/tiledownw.png
|
2008-01-05 20:15:34 +01:00
|
|
|
dist_iconslayouts_DATA += icons/layouts/tileleft.png
|
|
|
|
dist_iconslayouts_DATA += icons/layouts/tileleftw.png
|
2008-01-14 00:37:46 +01:00
|
|
|
dist_iconslayouts_DATA += icons/layouts/tileup.png
|
|
|
|
dist_iconslayouts_DATA += icons/layouts/tileupw.png
|
2008-01-05 20:15:34 +01:00
|
|
|
dist_iconslayouts_DATA += icons/layouts/tilew.png
|
2008-01-05 17:32:51 +01:00
|
|
|
|
2008-01-04 20:49:49 +01:00
|
|
|
clean-local:
|
|
|
|
rm -f awesome*.1 awesome*.1.xml
|
|
|
|
|
|
|
|
SUFFIXES += .1.xml .1
|
|
|
|
if HAVE_XMLTO
|
|
|
|
.1.xml.1:
|
|
|
|
$(XMLTO) man $<
|
|
|
|
endif
|
|
|
|
|
|
|
|
SUFFIXES += .1.txt .1.xml
|
|
|
|
if HAVE_ASCIIDOC
|
|
|
|
.1.txt.1.xml:
|
|
|
|
$(ASCIIDOC) -d manpage -b docbook -o $@ $<
|
|
|
|
endif
|
|
|
|
|
2008-01-04 22:10:42 +01:00
|
|
|
|
2008-01-09 17:01:15 +01:00
|
|
|
# Check that package version matches git version before creating dist tarballs
|
|
|
|
dist-hook: git-version-check
|
|
|
|
distcheck-hook: git-version-check
|
|
|
|
|
2008-01-14 11:31:59 +01:00
|
|
|
# Note: We cannot run autogen.sh from here, because we would need some way to
|
|
|
|
# restart the whole dist process from the start and there is none.
|
|
|
|
EXTRA_DIST += build-utils/package-version
|
2008-01-09 17:01:15 +01:00
|
|
|
git-version-check:
|
2008-01-21 14:55:59 +01:00
|
|
|
@git_ver=`$(top_srcdir)/build-utils/package-version $(top_srcdir) version-stamp`; \
|
2008-01-14 11:31:59 +01:00
|
|
|
if test "x$${git_ver}" = "x$(PACKAGE_VERSION)"; then :; else \
|
2008-01-21 13:48:26 +01:00
|
|
|
echo "ERROR: PACKAGE_VERSION and 'git describe' version do not match:"; \
|
|
|
|
echo " current 'git describe' version: $${git_ver}"; \
|
|
|
|
echo " current PACKAGE_VERSION: $(PACKAGE_VERSION)"; \
|
|
|
|
echo "You can update PACKAGE_VERSION by running $(top_srcdir)/autogen.sh."; \
|
2008-01-09 17:01:15 +01:00
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
2008-01-14 11:31:59 +01:00
|
|
|
# Version stamp files can only exist in tarball source trees.
|
|
|
|
#
|
|
|
|
# So there is no need to generate them anywhere else or to clean them
|
|
|
|
# up anywhere.
|
|
|
|
dist-hook:
|
|
|
|
echo "$(PACKAGE_VERSION)" > "$(distdir)/version-stamp"
|
2008-01-09 17:01:15 +01:00
|
|
|
|
2008-01-04 20:49:49 +01:00
|
|
|
EXTRA_DIST += awesome.doxygen.in
|
|
|
|
|
|
|
|
# Workaround for buggy pre-1.5.3 doxygen.
|
|
|
|
#
|
|
|
|
# Some pre-1.5.3 versions of doxygen segfault on reading these lines.
|
|
|
|
# Call make with DOXYGEN_SEGFAULT=-segfault as a workaround.
|
|
|
|
CLEANFILES += awesome.doxygen-segfault
|
|
|
|
awesome.doxygen-segfault: awesome.doxygen
|
|
|
|
$(SED) '/^QT_AUTOBRIEF/d; /^EXTRACT_ANON_NSPACES/d; /^HTML_DYNAMIC_SECTIONS/d' \
|
|
|
|
< awesome.doxygen > awesome.doxygen-segfault
|
|
|
|
|
|
|
|
if HAVE_DOXYGEN
|
|
|
|
doc: doc/html/index.html
|
|
|
|
|
|
|
|
doc/html/index.html: awesome.doxygen$(DOXYGEN_SEGFAULT) $(awesome_SOURCES) $(awesome_client_SOURCES)
|
|
|
|
$(DOXYGEN) awesome.doxygen$(DOXYGEN_SEGFAULT)
|
|
|
|
endif
|