X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2FMakefile.am;h=357de3df0bda8cd23b12bdf0766d298da16a414b;hb=1d0de30170119eade2a7305ffa8ec6d9a3e4af32;hp=e4e28ee65f010c547bbb346a107aff285f2bcbc4;hpb=68172538bd783a8ad763e8e3416e4081fcc06580;p=evince.git diff --git a/libdocument/Makefile.am b/libdocument/Makefile.am index e4e28ee6..357de3df 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 \ @@ -136,7 +144,7 @@ EXTRA_DIST = \ if ENABLE_INTROSPECTION -EvinceDocument-$(EV_API_VERSION).gir: libevdocument.la Makefile $(INST_H_FILES) +EvinceDocument-$(EV_API_VERSION).gir: libevdocument.la Makefile $(INST_H_FILES) $(filter %.c,$(libevdocument_la_SOURCES)) $(AM_V_GEN) PKG_CONFIG_PATH=$(top_builddir):$$PKG_CONFIG_PATH \ $(G_IR_SCANNER) -v --namespace EvinceDocument \ --strip-prefix=Ev \ @@ -147,7 +155,7 @@ EvinceDocument-$(EV_API_VERSION).gir: libevdocument.la Makefile $(INST_H_FILES) --include=GdkPixbuf-2.0 \ --include=Gtk-2.0 \ --library=evdocument \ - --libtool="$(SHAVE_SAVED_LIBTOOL)" \ + --libtool="$(SAVED_LIBTOOL)" \ --output $@ \ --pkg evince-document-$(EV_API_VERSION) \ -I$(top_srcdir) \ @@ -155,7 +163,8 @@ EvinceDocument-$(EV_API_VERSION).gir: libevdocument.la Makefile $(INST_H_FILES) -I$(srcdir) \ -I$(builddir) \ -DEVINCE_COMPILATION \ - $(filter %.h,$^) + $(filter %.h,$^) \ + $(filter %.c,$^) girdir = $(GIRDIR) gir_DATA = EvinceDocument-$(EV_API_VERSION).gir @@ -174,3 +183,5 @@ CLEANFILES += $(gir_DATA) $(typelibs_DATA) $< -o $@ endif # ENABLE_INTROSPECTION + +-include $(top_srcdir)/git.mk