From 1170282cec1b4d4ba251b6f801be2c4375231d41 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 7 Dec 2017 18:01:58 +0100 Subject: [PATCH] build: Use $(srcdir) when it makes sense There are a few places which use $(top_srcdir) when $(srcdir) would be equally valid. Signed-off-by: Christophe Fergeau Acked-by: Frediano Ziglio --- server/Makefile.am | 4 ++-- server/tests/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/Makefile.am b/server/Makefile.am index 74d3a824..38c346c2 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -35,8 +35,8 @@ libspice_server_la_LDFLAGS = \ if HAVE_LD_VERSION_SCRIPT libspice_server_la_LDFLAGS += \ - -Wl,--version-script=$(top_srcdir)/server/spice-server.syms -EXTRA_libspice_server_la_DEPENDENCIES = $(top_srcdir)/server/spice-server.syms + -Wl,--version-script=$(srcdir)/spice-server.syms +EXTRA_libspice_server_la_DEPENDENCIES = $(srcdir)/spice-server.syms endif libserver_la_LIBADD = \ diff --git a/server/tests/Makefile.am b/server/tests/Makefile.am index 971575b5..ad55eb76 100644 --- a/server/tests/Makefile.am +++ b/server/tests/Makefile.am @@ -1,7 +1,7 @@ NULL = @VALGRIND_CHECK_RULES@ -VALGRIND_SUPPRESSIONS_FILES = $(top_srcdir)/server/tests/valgrind/glib.supp +VALGRIND_SUPPRESSIONS_FILES = $(srcdir)/valgrind/glib.supp EXTRA_DIST = \ $(VALGRIND_SUPPRESSIONS_FILES) \ pki/ca-cert.pem \