[gnome-music/wip/merge: 208/343] Create gnome-music using sed



commit a0dd4aa8c1639e63d166ecd1845099f8860a6aff
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Wed Jul 17 19:10:40 2013 +0800

    Create gnome-music using sed
    
    This makes sure that all variables will be fully expanded.

 Makefile.am  |   19 +++++++++++++++++++
 configure.ac |    1 -
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index f0fa85f..68e2251 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -45,5 +45,24 @@ gen-AUTHORS:
           mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS ;           \
        fi
 
+gnome-music: gnome-music.in
+       sed                                             \
+               -e s!\ srcdir\@!$(abs_top_srcdir)!      \
+               -e s!\ prefix\@!$(prefix)!              \
+               -e s!\ datadir\@!$(datadir)!            \
+               -e s!\ pkgdatadir\@!$(pkgdatadir)!      \
+               -e s!\ libexecdir\@!$(libexecdir)!      \
+               -e s!\ libdir\@!$(libdir)!              \
+               -e s!\ pkglibdir\@!$(pkglibdir)!        \
+               -e s!\ pythondir\@!$(pythondir)!        \
+               -e s!\ pyexecdir\@!$(pyexecdir)!        \
+               -e s!\ PACKAGE\@!$(PACKAGE)!            \
+               -e s!\ VERSION\@!$(VERSION)!            \
+               < $< > $@
+
+gnome-music: Makefile
+
+all-local: gnome-music
+
 -include $(top_srcdir)/git.mk
 
diff --git a/configure.ac b/configure.ac
index ad8614b..dce52cb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,7 +41,6 @@ AC_CONFIG_FILES([
   Makefile
   data/Makefile
   gnomemusic/Makefile
-  gnome-music
   po/Makefile.in
   libgd/Makefile
 ])


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