From f1e4ad09a16eb51125dac8c2a2415c16936b97e7 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Thu, 14 Feb 2008 01:18:07 +0100 Subject: [PATCH] Add make targets replacing the running awesome Presuming we are running awesome on this screen, and this is screen 0, * we replace the running awesome instance by a freshly compiled one with the "restart-uninstalled" target, * we replace the running awesome instance by the last installed one with the "restart-installed" target. Note this can render your running X11 screen unusable. A little bit of test magic starting Xnest should make more confined tests possible with less serious failure modes. Signed-off-by: Julien Danjou --- Makefile.am | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile.am b/Makefile.am index 7d0ce9c6f..1650fd7dd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -251,3 +251,14 @@ doc: doc/html/index.html doc/html/index.html: awesome.doxygen$(DOXYGEN_SEGFAULT) $(awesome_SOURCES) $(awesome_client_SOURCES) $(DOXYGEN) awesome.doxygen$(DOXYGEN_SEGFAULT) endif + + +# 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 + echo 0 exec "$${PWD}/awesome" | "$${PWD}/awesome-client" + +# ...we replace the running awesome instance by the last installed one. +restart-installed: + echo 0 exec "$(DESTDIR)$(bindir)/awesome" | "$(DESTDIR)$(bindir)/awesome-client" +