2008-01-04 20:49:49 +01:00
|
|
|
BUILT_SOURCES =
|
|
|
|
CLEANFILES =
|
|
|
|
EXTRA_DIST =
|
|
|
|
SUFFIXES =
|
|
|
|
bin_PROGRAMS =
|
|
|
|
doc_DATA =
|
|
|
|
man_MANS =
|
2008-06-09 11:49:50 +02:00
|
|
|
etcdir = $(sysconfdir)/awesome
|
|
|
|
etc_DATA =
|
2008-03-25 16:59:51 +01:00
|
|
|
iconsdir = $(pkgdatadir)/icons
|
|
|
|
dist_icons_DATA =
|
|
|
|
iconslayoutsdir = $(iconsdir)/layouts
|
2008-01-05 20:15:34 +01:00
|
|
|
dist_iconslayouts_DATA =
|
2008-06-10 10:18:56 +02:00
|
|
|
awesomelibdir = $(pkgdatadir)/lib
|
|
|
|
dist_awesomelib_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-05-27 20:53:34 +02:00
|
|
|
LAYOUTS += layouts/magnifier.c
|
|
|
|
LAYOUTS += layouts/magnifier.h
|
2008-01-04 22:10:42 +01:00
|
|
|
|
2008-01-04 20:49:49 +01:00
|
|
|
WIDGETS =
|
2008-06-09 21:43:09 +02:00
|
|
|
WIDGETS += widgets/taglist.c
|
2008-01-04 22:10:42 +01:00
|
|
|
WIDGETS += widgets/textbox.c
|
|
|
|
WIDGETS += widgets/iconbox.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
|
2008-02-02 03:40:51 +01:00
|
|
|
|
2008-01-04 20:49:49 +01:00
|
|
|
EXTRA_DIST += LICENSE
|
|
|
|
|
|
|
|
EXTRA_DIST += STYLE
|
|
|
|
doc_DATA += STYLE
|
|
|
|
|
2008-05-26 15:25:40 +02:00
|
|
|
EXTRA_DIST += build-utils/gendoc.lua
|
2008-01-04 22:10:42 +01:00
|
|
|
|
2008-05-20 15:39:47 +02:00
|
|
|
EXTRA_DIST += awful.lua
|
2008-06-10 10:18:56 +02:00
|
|
|
EXTRA_DIST += tabulous.lua
|
|
|
|
dist_awesomelib_DATA += awful.lua
|
|
|
|
dist_awesomelib_DATA += tabulous.lua
|
2008-01-08 21:39:40 +01:00
|
|
|
|
2008-05-20 15:39:47 +02:00
|
|
|
EXTRA_DIST += awesomerc.lua.in
|
|
|
|
CLEANFILES += awesomerc.lua
|
|
|
|
BUILT_SOURCES += awesomerc.lua
|
|
|
|
doc_DATA += awesomerc.lua
|
2008-06-09 11:49:50 +02:00
|
|
|
etc_DATA += awesomerc.lua
|
|
|
|
|
2008-05-20 15:39:47 +02:00
|
|
|
awesomerc.lua: $(srcdir)/awesomerc.lua.in
|
|
|
|
$(SED) -e "s|[@]iconslayoutsdir@|$(iconslayoutsdir)|;s|[@]iconsdir@|$(iconsdir)|" \
|
|
|
|
< $(srcdir)/awesomerc.lua.in > awesomerc.lua
|
2008-01-04 20:49:49 +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-25 11:49:14 +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-25 11:49:14 +01:00
|
|
|
$(top_srcdir)/build-utils/widgetgen.sh "$(top_srcdir)" > widgetgen.h
|
2008-01-16 08:06:59 +01:00
|
|
|
|
2008-01-25 11:49:18 +01:00
|
|
|
A_V = awesome-version-internal
|
|
|
|
CLEANFILES += $(A_V).h
|
|
|
|
BUILT_SOURCES += $(A_V).h.stamp
|
|
|
|
$(A_V).h.stamp:
|
2008-01-25 11:49:16 +01:00
|
|
|
@current_ver=`$(SHELL) $(top_srcdir)/build-utils/package-version $(top_srcdir) version-stamp`; \
|
2008-02-27 09:09:38 +01:00
|
|
|
{ echo '#ifndef AWESOME_VERSION_INTERNAL'; \
|
2008-01-25 11:49:18 +01:00
|
|
|
echo "#define AWESOME_VERSION_INTERNAL \"$${current_ver}\""; \
|
|
|
|
echo "#endif"; } > "$(A_V).h.new"
|
|
|
|
@if test -f "$(A_V).h" \
|
|
|
|
&& cmp "$(A_V).h.new" "$(A_V).h"; then :; \
|
|
|
|
else cat "$(A_V).h.new" > "$(A_V).h"; fi; \
|
|
|
|
rm -f "$(A_V).h.new"
|
2008-01-25 11:49:16 +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-05-20 15:39:47 +02:00
|
|
|
AM_CPPFLAGS = $(pangocairo_CFLAGS) $(AWESOME_CFLAGS) \
|
2008-03-21 16:50:17 +01:00
|
|
|
$(GTK_CFLAGS) $(imlib2_CFLAGS) \
|
|
|
|
$(xcb_CFLAGS) $(xcb_event_CFLAGS) \
|
|
|
|
$(xcb_randr_CFLAGS) $(xcb_xinerama_CFLAGS) $(xcb_shape_CFLAGS) \
|
|
|
|
$(xcb_aux_CFLAGS) $(xcb_atom_CFLAGS) $(xcb_keysyms_CFLAGS) \
|
2008-05-31 16:04:46 +02:00
|
|
|
$(xcb_icccm_CFLAGS) $(dbus_CFLAGS) $(Lua_CFLAGS)
|
2008-01-04 20:49:49 +01:00
|
|
|
|
|
|
|
bin_PROGRAMS += awesome
|
|
|
|
awesome_SOURCES = \
|
2008-03-13 09:05:34 +01:00
|
|
|
common/socket.c common/socket.h \
|
|
|
|
common/swindow.c common/swindow.h \
|
|
|
|
common/version.c common/version.h \
|
|
|
|
common/util.c common/util.h \
|
|
|
|
common/xutil.c common/xutil.h \
|
|
|
|
common/configopts.h common/configopts.c \
|
|
|
|
common/xscreen.h common/xscreen.c \
|
2008-04-28 11:22:47 +02:00
|
|
|
common/draw.c common/draw.h \
|
|
|
|
common/markup.c common/markup.h \
|
2008-05-20 15:39:47 +02:00
|
|
|
common/list.h common/refcount.h \
|
2008-03-13 09:05:34 +01:00
|
|
|
structs.h \
|
2008-01-04 20:49:49 +01:00
|
|
|
client.c client.h \
|
2008-03-15 13:59:04 +01:00
|
|
|
titlebar.c titlebar.h \
|
2008-02-13 18:04:20 +01:00
|
|
|
placement.c placement.h \
|
2008-01-04 20:49:49 +01:00
|
|
|
focus.c focus.h \
|
2008-05-25 19:30:54 +02:00
|
|
|
stack.c stack.h \
|
2008-05-25 18:08:49 +02:00
|
|
|
cnode.c cnode.h \
|
2008-01-04 20:49:49 +01:00
|
|
|
event.c event.h \
|
|
|
|
layout.c layout.h \
|
2008-05-28 12:15:00 +02:00
|
|
|
keybinding.c keybinding.h \
|
2008-05-20 15:39:47 +02:00
|
|
|
awesome.c \
|
2008-06-09 21:43:09 +02:00
|
|
|
tag.c tag.h \
|
2008-05-20 15:39:47 +02:00
|
|
|
lua.c lua.h \
|
2008-01-04 20:49:49 +01:00
|
|
|
screen.c screen.h \
|
|
|
|
statusbar.c statusbar.h \
|
|
|
|
window.c window.h \
|
|
|
|
mouse.c mouse.h \
|
|
|
|
widget.c widget.h \
|
2008-04-24 17:45:30 +02:00
|
|
|
ewmh.c ewmh.h \
|
|
|
|
dbus.c dbus.h
|
2008-01-04 20:49:49 +01:00
|
|
|
awesome_SOURCES += $(LAYOUTS)
|
|
|
|
awesome_SOURCES += $(WIDGETS)
|
2008-05-20 15:39:47 +02:00
|
|
|
awesome_LDADD = $(pangocairo_LIBS) $(xcb_LIBS) $(xcb_event_LIBS) \
|
2008-03-21 16:50:17 +01:00
|
|
|
$(xcb_randr_LIBS) $(xcb_xinerama_LIBS) $(xcb_shape_LIBS) $(xcb_aux_LIBS) \
|
2008-04-24 17:45:30 +02:00
|
|
|
$(xcb_atom_LIBS) $(xcb_keysyms_LIBS) $(xcb_icccm_LIBS) $(dbus_LIBS)\
|
2008-05-31 16:04:46 +02:00
|
|
|
$(imlib2_LIBS) $(GTK_LIBS) $(Lua_LIBS)
|
2008-01-04 20:49:49 +01:00
|
|
|
|
|
|
|
bin_PROGRAMS += awesome-client
|
|
|
|
awesome_client_SOURCES = \
|
2008-02-27 09:07:52 +01:00
|
|
|
awesome-client.c \
|
|
|
|
common/socket.c common/socket.h \
|
2008-02-27 09:04:17 +01:00
|
|
|
common/version.c common/version.h \
|
2008-01-21 18:14:59 +01:00
|
|
|
common/util.c common/util.h
|
2008-05-29 16:48:55 +02:00
|
|
|
awesome_client_LDADD = $(readline_LIBS)
|
2008-03-04 20:39:21 +01:00
|
|
|
|
2008-02-11 09:56:09 +01:00
|
|
|
if HAVE_XMLTO
|
|
|
|
if HAVE_ASCIIDOC
|
2008-02-11 10:19:10 +01:00
|
|
|
if XMLTO_MAN_WORKS
|
2008-01-04 20:49:49 +01:00
|
|
|
man_MANS += awesome.1
|
|
|
|
man_MANS += awesome-client.1
|
2008-02-28 12:36:17 +01:00
|
|
|
man_MANS += awesomerc.5
|
2008-02-11 09:56:09 +01:00
|
|
|
endif
|
|
|
|
endif
|
2008-02-11 10:19:10 +01:00
|
|
|
endif
|
2008-01-04 20:49:49 +01:00
|
|
|
|
2008-02-11 09:56:09 +01:00
|
|
|
EXTRA_DIST += awesome.1.txt
|
|
|
|
EXTRA_DIST += awesome-client.1.txt
|
2008-02-28 12:36:17 +01:00
|
|
|
EXTRA_DIST += awesomerc.5.txt
|
2008-01-04 20:49:49 +01:00
|
|
|
|
2008-03-25 16:59:51 +01:00
|
|
|
dist_icons_DATA += icons/awesome16.png
|
|
|
|
dist_icons_DATA += icons/awesome32.png
|
|
|
|
dist_icons_DATA += icons/awesome48.png
|
|
|
|
dist_icons_DATA += icons/awesome64.png
|
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-17 17:04:40 +01:00
|
|
|
dist_iconslayouts_DATA += icons/layouts/tilebottom.png
|
|
|
|
dist_iconslayouts_DATA += icons/layouts/tilebottomw.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-17 17:04:40 +01:00
|
|
|
dist_iconslayouts_DATA += icons/layouts/tiletop.png
|
|
|
|
dist_iconslayouts_DATA += icons/layouts/tiletopw.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:
|
2008-05-20 15:39:47 +02:00
|
|
|
rm -f awesome*.1 awesome*.1.xml awesome*.5 awesome*.5.xml
|
2008-01-04 20:49:49 +01:00
|
|
|
|
|
|
|
SUFFIXES += .1.xml .1
|
2008-02-28 12:36:17 +01:00
|
|
|
SUFFIXES += .5.xml .5
|
2008-01-04 20:49:49 +01:00
|
|
|
if HAVE_XMLTO
|
|
|
|
.1.xml.1:
|
|
|
|
$(XMLTO) man $<
|
2008-02-28 12:36:17 +01:00
|
|
|
.5.xml.5:
|
|
|
|
$(XMLTO) man $<
|
2008-01-04 20:49:49 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
SUFFIXES += .1.txt .1.xml
|
2008-02-28 12:36:17 +01:00
|
|
|
SUFFIXES += .5.txt .5.xml
|
2008-01-04 20:49:49 +01:00
|
|
|
if HAVE_ASCIIDOC
|
2008-05-26 15:25:40 +02:00
|
|
|
CLEANFILES += apidocgen.txt
|
|
|
|
BUILT_SOURCES += apidocgen.txt
|
|
|
|
APIDOCSOURCES=$(shell grep -l 'const struct luaL_reg' $(awesome_SOURCES))
|
|
|
|
apidocgen.txt: $(APIDOCSOURCES) build-utils/gendoc.lua
|
2008-05-27 10:57:58 +02:00
|
|
|
cat $(APIDOCSOURCES) | $(LUA) $(top_srcdir)/build-utils/gendoc.lua > apidocgen.txt
|
2008-01-04 20:49:49 +01:00
|
|
|
.1.txt.1.xml:
|
|
|
|
$(ASCIIDOC) -d manpage -b docbook -o $@ $<
|
2008-05-26 15:25:40 +02:00
|
|
|
awesomerc.5.xml: apidocgen.txt
|
2008-03-27 16:48:52 +01:00
|
|
|
.5.txt.5.xml:
|
2008-02-28 12:36:17 +01:00
|
|
|
$(ASCIIDOC) -d manpage -b docbook -o $@ $<
|
2008-01-04 20:49:49 +01:00
|
|
|
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)"; \
|
2008-01-29 12:26:36 +01:00
|
|
|
echo "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
|
2008-02-14 01:18:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Presuming we are running awesome on this screen, and this is screen 0, ...
|
|
|
|
# ...we replace the running awesome instance by a freshly compiled one.
|
|
|
|
restart-uninstalled: awesome awesome-client
|
2008-03-09 20:37:52 +01:00
|
|
|
screen=`echo "$${DISPLAY}" | sed 's/.*:[0-9]\.\([0-9]*\)$$/\1/; s/.*:\([0-9]*\)$$/0/'`; \
|
|
|
|
echo "$${screen}" exec "$${PWD}/awesome" | "$${PWD}/awesome-client"
|
2008-02-14 01:18:07 +01:00
|
|
|
|
|
|
|
# ...we replace the running awesome instance by the last installed one.
|
|
|
|
restart-installed:
|
2008-03-09 20:37:52 +01:00
|
|
|
screen=`echo "$${DISPLAY}" | sed 's/.*:[0-9]\.\([0-9]*\)$$/\1/; s/.*:\([0-9]*\)$$/0/'`; \
|
|
|
|
echo "$${screen}" exec "$(DESTDIR)$(bindir)/awesome" | "$(DESTDIR)$(bindir)/awesome-client"
|
2008-02-14 01:18:07 +01:00
|
|
|
|