[evince] [build] Remove circular dependencies in Makefiles



commit 89c60efc704ab3d664cd65503b2f7429628962bc
Author: Hib Eris <hib hiberis nl>
Date:   Thu May 27 13:43:12 2010 +0200

    [build] Remove circular dependencies in Makefiles

 libdocument/Makefile.am |   22 +++++++++++++++-------
 libview/Makefile.am     |   22 +++++++++++++++-------
 2 files changed, 30 insertions(+), 14 deletions(-)
---
diff --git a/libdocument/Makefile.am b/libdocument/Makefile.am
index 4cbc34e..357de3d 100644
--- a/libdocument/Makefile.am
+++ b/libdocument/Makefile.am
@@ -4,7 +4,7 @@ NOINST_H_FILES =				\
 	ev-debug.h				\
 	ev-module.h
 
-INST_H_FILES = 					\
+INST_H_SRC_FILES = 				\
 	ev-annotation.h				\
 	ev-async-renderer.h			\
 	ev-attachment.h				\
@@ -25,7 +25,6 @@ INST_H_FILES = 					\
 	ev-document-security.h			\
 	ev-document-thumbnails.h		\
 	ev-document-transition.h		\
-	ev-document-type-builtins.h		\
 	ev-file-exporter.h			\
 	ev-file-helpers.h			\
 	ev-form-field.h				\
@@ -42,6 +41,10 @@ INST_H_FILES = 					\
 	ev-transition-effect.h			\
 	ev-version.h
 
+INST_H_FILES = 					\
+	$(INST_H_SRC_FILES)			\
+	ev-document-type-builtins.h
+
 headerdir = $(includedir)/evince/$(EV_API_VERSION)/libdocument
 header_DATA = $(INST_H_FILES)
 
@@ -112,21 +115,26 @@ BUILT_SOURCES = 			\
 	ev-document-type-builtins.c	\
 	ev-document-type-builtins.h
 
-CLEANFILES = $(BUILT_SOURCES) stamp-ev-document-type-builtins.h
+CLEANFILES = 					\
+	$(BUILT_SOURCES)			\
+	stamp-ev-document-type-builtins.h	\
+	stamp-ev-document-type-builtins.c
 
 ev-document-type-builtins.h: stamp-ev-document-type-builtins.h
 	@true
-
-stamp-ev-document-type-builtins.h: ev-document-type-builtins.h.template $(INST_H_FILES)
+stamp-ev-document-type-builtins.h: ev-document-type-builtins.h.template $(INST_H_SRC_FILES)
 	$(AM_V_GEN)$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbh \
 	&& (cmp -s xgen-etbh ev-document-type-builtins.h || cp xgen-etbh ev-document-type-builtins.h ) \
 	&& rm -f xgen-etbh \
 	&& echo timestamp > $(@F)
 
-ev-document-type-builtins.c: ev-document-type-builtins.c.template $(INST_H_FILES)
+ev-document-type-builtins.c: stamp-ev-document-type-builtins.c
+	@true
+stamp-ev-document-type-builtins.c: ev-document-type-builtins.c.template $(INST_H_SRC_FILES)
 	$(AM_V_GEN)$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbc \
 	&& (cmp -s xgen-etbc ev-document-type-builtins.c || cp xgen-etbc ev-document-type-builtins.c ) \
-	&& rm -f xgen-etbc
+	&& rm -f xgen-etbc \
+	&& echo timestamp > $(@F)
 
 EXTRA_DIST = \
 	ev-document-type-builtins.c.template \
diff --git a/libview/Makefile.am b/libview/Makefile.am
index 980bc00..23210fa 100644
--- a/libview/Makefile.am
+++ b/libview/Makefile.am
@@ -12,14 +12,17 @@ NOINST_H_FILES =			\
 	ev-view-marshal.h		\
 	ev-view-private.h
 
-INST_H_FILES = 				\
+INST_H_SRC_FILES = 			\
 	ev-document-model.h		\
 	ev-jobs.h			\
 	ev-job-scheduler.h		\
 	ev-print-operation.h	        \
 	ev-stock-icons.h		\
 	ev-view.h			\
-	ev-view-presentation.h		\
+	ev-view-presentation.h
+
+INST_H_FILES = 				\
+	$(INST_H_SRC_FILES)		\
 	ev-view-type-builtins.h
 
 headerdir = $(includedir)/evince/$(EV_API_VERSION)/libview
@@ -78,7 +81,10 @@ BUILT_SOURCES = 			\
 	ev-view-type-builtins.c		\
 	ev-view-type-builtins.h
 
-CLEANFILES = $(BUILT_SOURCES) stamp-ev-view-type-builtins.h
+CLEANFILES = 				\
+	$(BUILT_SOURCES)		\
+	stamp-ev-view-type-builtins.h	\
+	stamp-ev-view-type-builtins.c
 
 ev-view-marshal.h: $(srcdir)/ev-view-marshal.list
 	$(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=ev_view_marshal $(srcdir)/ev-view-marshal.list --header --internal > $@
@@ -89,17 +95,19 @@ ev-view-marshal.c: $(srcdir)/ev-view-marshal.list
 
 ev-view-type-builtins.h: stamp-ev-view-type-builtins.h
 	@true
-
-stamp-ev-view-type-builtins.h: ev-view-type-builtins.h.template $(INST_H_FILES)
+stamp-ev-view-type-builtins.h: ev-view-type-builtins.h.template $(INST_H_SRC_FILES)
 	$(AM_V_GEN)$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbh \
 	&& (cmp -s xgen-etbh ev-view-type-builtins.h || cp xgen-etbh ev-view-type-builtins.h ) \
 	&& rm -f xgen-etbh \
 	&& echo timestamp > $(@F)
 
-ev-view-type-builtins.c: ev-view-type-builtins.c.template $(INST_H_FILES)
+ev-view-type-builtins.c: stamp-ev-view-type-builtins.c
+	@true
+stamp-ev-view-type-builtins.c: ev-view-type-builtins.c.template $(INST_H_SRC_FILES)
 	$(AM_V_GEN)$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbc \
 	&& (cmp -s xgen-etbc ev-view-type-builtins.c || cp xgen-etbc ev-view-type-builtins.c ) \
-	&& rm -f xgen-etbc
+	&& rm -f xgen-etbc \
+	&& echo timestamp > $(@F)
 
 EXTRA_DIST = \
 	ev-view-type-builtins.c.template  \



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