diff --git a/Makefile.am b/Makefile.am index a0be556d3c730e307310b639b9664efec36e6563..16658f863b59fc768dfa1f8baf32fad4932a2657 100644 --- a/Makefile.am +++ b/Makefile.am @@ -85,15 +85,10 @@ dist_pkgdata_DATA = data/capsule-shim.h \ data/capsule-shim.mk.in \ disabled.mk -CLEANFILES = $(shim_files) $(shim_srcs) BUILT_SOURCES = $(shim_srcs) include $(top_srcdir)/disabled.mk -# ============================================================================ -# standalone man pages -include $(top_srcdir)/documentation.mk - # ============================================================================ # gtk-doc configuration: see /usr/share/doc/gtk-doc-tools/examples/Makefile.am DOC_MODULE = libcapsule @@ -115,3 +110,9 @@ GTKDOC_CFLAGS = GTKDOC_LIBS = include $(top_srcdir)/gtk-doc.make +# ============================================================================ +# CLEANFILES is unconditionally set by gtk-doc.make, have to do these after: +CLEANFILES += $(shim_files) $(shim_srcs) +# ============================================================================ +# standalone man pages +include $(top_srcdir)/documentation.mk