[libgxps/wip/topush: 3/9] build: add Makefile.sources providing the lists of sources



commit 737112e8833a1ce4a2004122386d6821c14827d7
Author: Ignacio Casal Quinteiro <ignacio casal nice-software com>
Date:   Fri Sep 9 11:32:57 2016 +0200

    build: add Makefile.sources providing the lists of sources
    
    This in preparation so we maintain one single list of sources
    for the automake Makefile and the Nmake one.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771057

 libgxps/Makefile.am      |   49 ++++-----------------------------------------
 libgxps/Makefile.sources |   48 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+), 44 deletions(-)
---
diff --git a/libgxps/Makefile.am b/libgxps/Makefile.am
index 6537b31..1c63ef0 100644
--- a/libgxps/Makefile.am
+++ b/libgxps/Makefile.am
@@ -1,53 +1,14 @@
 lib_LTLIBRARIES = libgxps.la
 
-NOINST_H_FILES = \
-       gxps-archive.h          \
-       gxps-brush.h            \
-       gxps-color.h            \
-       gxps-debug.h            \
-       gxps-fonts.h            \
-       gxps-glyphs.h           \
-       gxps-images.h           \
-       gxps-matrix.h           \
-       gxps-page-private.h     \
-       gxps-parse-utils.h      \
-       gxps-path.h             \
-       gxps-private.h
-
-INST_H_FILES = \
-       gxps.h                          \
-       gxps-core-properties.h          \
-       gxps-document.h                 \
-       gxps-document-structure.h       \
-       gxps-error.h                    \
-       gxps-file.h                     \
-       gxps-links.h                    \
-       gxps-page.h                     \
-       gxps-version.h
+include Makefile.sources
 
 libgxpsincludedir = $(includedir)/libgxps
-libgxpsinclude_HEADERS = $(INST_H_FILES)
+libgxpsinclude_HEADERS = $(GXPS_BASE_INST_H_FILES)
 
 libgxps_la_SOURCES = \
-       gxps-archive.c                  \
-       gxps-brush.c                    \
-       gxps-color.c                    \
-       gxps-core-properties.c          \
-       gxps-debug.c                    \
-       gxps-document.c                 \
-       gxps-document-structure.c       \
-       gxps-error.c                    \
-       gxps-file.c                     \
-       gxps-fonts.c                    \
-       gxps-glyphs.c                   \
-       gxps-links.c                    \
-       gxps-matrix.c                   \
-       gxps-images.c                   \
-       gxps-page.c                     \
-       gxps-parse-utils.c              \
-       gxps-path.c                     \
-       $(NOINST_H_FILES)               \
-       $(INST_H_FILES)
+       $(GXPS_BASE_SOURCES)            \
+       $(GXPS_BASE_NOINST_H_FILES)     \
+       $(GXPS_BASE_INST_H_FILES)
 
 libgxps_la_CPPFLAGS = \
        -I$(top_builddir)       \
diff --git a/libgxps/Makefile.sources b/libgxps/Makefile.sources
new file mode 100644
index 0000000..9d6a24a
--- /dev/null
+++ b/libgxps/Makefile.sources
@@ -0,0 +1,48 @@
+NULL =
+
+GXPS_BASE_NOINST_H_FILES = \
+       gxps-archive.h          \
+       gxps-brush.h            \
+       gxps-color.h            \
+       gxps-debug.h            \
+       gxps-fonts.h            \
+       gxps-glyphs.h           \
+       gxps-images.h           \
+       gxps-matrix.h           \
+       gxps-page-private.h     \
+       gxps-parse-utils.h      \
+       gxps-path.h             \
+       gxps-private.h          \
+       $(NULL)
+
+GXPS_BASE_INST_H_FILES = \
+       gxps.h                          \
+       gxps-core-properties.h          \
+       gxps-document.h                 \
+       gxps-document-structure.h       \
+       gxps-error.h                    \
+       gxps-file.h                     \
+       gxps-links.h                    \
+       gxps-page.h                     \
+       gxps-version.h                  \
+       $(NULL)
+
+GXPS_BASE_SOURCES = \
+       gxps-archive.c                  \
+       gxps-brush.c                    \
+       gxps-color.c                    \
+       gxps-core-properties.c          \
+       gxps-debug.c                    \
+       gxps-document.c                 \
+       gxps-document-structure.c       \
+       gxps-error.c                    \
+       gxps-file.c                     \
+       gxps-fonts.c                    \
+       gxps-glyphs.c                   \
+       gxps-links.c                    \
+       gxps-matrix.c                   \
+       gxps-images.c                   \
+       gxps-page.c                     \
+       gxps-parse-utils.c              \
+       gxps-path.c                     \
+       $(NULL)


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