[goffice] Compilation: create a list of sources.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [goffice] Compilation: create a list of sources.
- Date: Tue, 14 Feb 2012 19:34:36 +0000 (UTC)
commit 57d7e1dfef846f3e645466e2521568eaea680ea0
Author: Morten Welinder <terra gnome org>
Date:   Tue Feb 14 14:32:51 2012 -0500
    Compilation: create a list of sources.
    
    This is in preparation for introspection work.
 ChangeLog  |    5 +++++
 goffice.mk |   14 ++++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 67ce506..41bf9a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-14  Morten Welinder  <terra gnome org>
+
+	* goffice.mk (list_of_sources): Create a list of sources at each
+	directory level.
+
 2012-02-12  Jean Brefort  <jean brefort normalesup org>
 
 	* goffice/graph/gog-axis-line.c (cb_position_toggled): don't move any other
diff --git a/goffice.mk b/goffice.mk
index 6b8b0a7..bbb9fb2 100644
--- a/goffice.mk
+++ b/goffice.mk
@@ -9,3 +9,17 @@ GOFFICE_PLUGIN_FLAGS = $(GOFFICE_PLUGIN_LDFLAGS)
 goffice_include_dir = $(includedir)/libgoffice- GOFFICE_API_VER@/goffice
 
 include $(top_srcdir)/goffice-win32.mk
+
+all-local: list_of_sources
+
+list_of_sources:
+	rm -f $  tmp
+	touch $  tmp
+	for i in $(SOURCES) $(HEADERS); do \
+		echo $$i | grep '\.[ch]$$' >> $  tmp; \
+	done
+	test -z "${SUBDIRS}" || for s in ${SUBDIRS}; do \
+		test -e $$s/list_of_sources && \
+		perl -pe "s{^}{$$s/}" $$s/list_of_sources >> $  tmp; \
+	done
+	mv $  tmp $@
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]