[almanah] build: Split EXTRA_DIST and CLEANFILES up in data/Makefile.am



commit e3794e2a7b0495b2016d228c2dfecd872a76ffdb
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Dec 20 23:17:14 2013 +0000

    build: Split EXTRA_DIST and CLEANFILES up in data/Makefile.am
    
    Make each section of the Makefile self-contained.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720853
    
    Signed-off-by: Álvaro Peña <alvaropg gmail com>

 data/Makefile.am |   29 ++++++++++++++++++-----------
 1 files changed, 18 insertions(+), 11 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 0d6d17f..3e3a4dc 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS = icons
 
+EXTRA_DIST =
+CLEANFILES =
+
 ###############################################################################
 # Icons
 ###############################################################################
@@ -27,6 +30,8 @@ ui_DATA = \
        almanah-app-menu.ui     \
        almanah.css
 
+EXTRA_DIST += $(ui_DATA)
+
 ###############################################################################
 # Desktop file
 ###############################################################################
@@ -37,6 +42,9 @@ desktopdir = $(datadir)/applications
 desktop_in_files = almanah.desktop.in
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 
+EXTRA_DIST += $(desktop_in_files)
+CLEANFILES += $(desktop_DATA)
+
 ###############################################################################
 # GSettings schemas
 ###############################################################################
@@ -50,6 +58,12 @@ gsettings_SCHEMAS = org.gnome.almanah.gschema.xml
 convertdir = $(datadir)/GConf/gsettings
 convert_DATA = almanah.convert
 
+EXTRA_DIST += \
+       $(schemas_in_files) \
+       $(convert_DATA) \
+       $(NULL)
+CLEANFILES += $(gsettings_SCHEMAS)
+
 ###############################################################################
 # AppData file
 ###############################################################################
@@ -57,20 +71,13 @@ convert_DATA = almanah.convert
 appdatadir = $(datadir)/appdata
 appdata_DATA = almanah.appdata.xml
 
+EXTRA_DIST += almanah.appdata.xml.in
+CLEANFILES += $(appdata_DATA)
+
 ###############################################################################
 # General
 ###############################################################################
 
-EXTRA_DIST = \
-       almanah.appdata.xml.in  \
-       $(ui_DATA)              \
-       $(desktop_in_files)     \
-       $(schemas_in_files)     \
-       $(convert_DATA)         \
-       entry-2.0.rnc
-CLEANFILES = \
-       almanah.appdata.xml     \
-       $(desktop_DATA)         \
-       $(gsettings_SCHEMAS)
+EXTRA_DIST += entry-2.0.rnc
 
 -include $(top_srcdir)/git.mk


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