[gnome-sudoku] Use Automake directory variables in makefiles



commit aafd45747ec977d906f438e6df910c3552c4e44b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Jul 8 13:30:29 2014 -0500

    Use Automake directory variables in makefiles
    
    Whoops, if we use the autoconf variables then they cannot be set at make
    time.

 lib/Makefile.am |    4 ++--
 src/Makefile.am |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/Makefile.am b/lib/Makefile.am
index c8a14d4..7bbf8bf 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -10,8 +10,8 @@ libsudoku_la_SOURCES = \
 libsudoku_la_CFLAGS = -w
 
 libsudoku_la_CPPFLAGS = \
-       -DPKGDATADIR=\"@datadir@/gnome-sudoku\" \
-       -DLOCALEDIR=\"@localedir \" \
+       -DPKGDATADIR=\"$(datadir)/gnome-sudoku\" \
+       -DLOCALEDIR=\"$(localedir)\" \
        -DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
        $(LIBSUDOKU_CFLAGS)
 
diff --git a/src/Makefile.am b/src/Makefile.am
index ba8cba3..61aded3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -14,8 +14,8 @@ gnome_sudoku_SOURCES = \
 gnome_sudoku_CFLAGS = -w
 
 gnome_sudoku_CPPFLAGS = \
-       -DPKGDATADIR=\"@datadir@/gnome-sudoku\" \
-       -DLOCALEDIR=\"@localedir \" \
+       -DPKGDATADIR=\"$(datadir)/gnome-sudoku\" \
+       -DLOCALEDIR=\"$(localedir)\" \
        -DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
        -I$(top_srcdir)/lib \
        $(GNOME_SUDOKU_CFLAGS)


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