[gnome-builder] build: add args support to make run



commit 93b7f0fce49ddaf0811419dd1d2b5523659fc761
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Dec 17 13:49:49 2016 -0800

    build: add args support to make run
    
    This way, we can run with ARGS="$command-line-arguments" when using make
    run or similar developer invocations.

 Makefile.am |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 4ca03ec..a71a8a0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -72,7 +72,7 @@ run:
        GOBJECT_DEBUG=instance-count \
        PYTHONDONTWRITEBYTECODE=yes \
        PATH=$(top_builddir)/src:${PATH} \
-       $(LIBTOOL) --mode=execute gdb -ex run --args src/gnome-builder -vvvv -s
+       $(LIBTOOL) --mode=execute gdb -ex run --args src/gnome-builder -vvvv -s $(ARGS)
 
 strace:
        PEAS_DEBUG=1 \
@@ -83,7 +83,7 @@ strace:
        GOBJECT_DEBUG=instance-count \
        PYTHONDONTWRITEBYTECODE=yes \
        PATH=$(top_builddir)/src:${PATH} \
-       $(LIBTOOL) --mode=execute strace -T src/gnome-builder -vvvv -s
+       $(LIBTOOL) --mode=execute strace -T src/gnome-builder -vvvv -s $(ARGS)
 
 debug:
        LSAN_OPTIONS=suppressions=$(top_srcdir)/build/asan.supp \
@@ -98,7 +98,7 @@ debug:
        GOBJECT_DEBUG=instance-count \
        PYTHONDONTWRITEBYTECODE=yes \
        PATH=$(top_builddir)/src:${PATH} \
-       $(LIBTOOL) --mode=execute gdb -ex run --args src/gnome-builder -vvvv -s
+       $(LIBTOOL) --mode=execute gdb -ex run --args src/gnome-builder -vvvv -s $(ARGS)
 
 valgrind:
        PEAS_DEBUG=1 \
@@ -110,6 +110,6 @@ valgrind:
        G_SLICE=always-malloc \
        PYTHONDONTWRITEBYTECODE=yes \
        PATH=$(top_builddir)/src:${PATH} \
-       $(LIBTOOL) --mode=execute valgrind src/gnome-builder -vvvv -s
+       $(LIBTOOL) --mode=execute valgrind src/gnome-builder -vvvv -s $(ARGS)
 
 -include $(top_srcdir)/git.mk


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]