[gtk-doc] make: Automatically clean sections.txt if --rebuild-sections is used
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] make: Automatically clean sections.txt if --rebuild-sections is used
- Date: Mon, 29 Dec 2014 14:31:35 +0000 (UTC)
commit bea2c3639b429e043ccff89f868cf77556c87c88
Author: Philip Withnall <philip withnall collabora co uk>
Date: Fri Dec 19 11:29:55 2014 +0000
make: Automatically clean sections.txt if --rebuild-sections is used
Rather than documenting it in a comment in the example Makefile.am;
might as well automate it.
https://bugzilla.gnome.org/show_bug.cgi?id=741763
examples/Makefile.am | 5 -----
gtk-doc.make | 3 +++
gtk-doc.notmpl.make | 3 +++
3 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/examples/Makefile.am b/examples/Makefile.am
index b6496d8..2fccb63 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -78,11 +78,6 @@ GTKDOC_LIBS=
# This includes the standard gtk-doc make rules, copied by gtkdocize.
include $(top_srcdir)/gtk-doc.make
-# Files not to distribute
-# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
-# for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt
-#DISTCLEANFILES +=
-
# Comment this out if you want 'make check' to test you doc status
# and run some sanity checks
if ENABLE_GTK_DOC
diff --git a/gtk-doc.make b/gtk-doc.make
index dd31993..374c08e 100644
--- a/gtk-doc.make
+++ b/gtk-doc.make
@@ -246,6 +246,9 @@ clean-local:
@if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-types" ; then \
rm -f $(DOC_MODULE).types; \
fi
+ @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-sections" ; then \
+ rm -f $(DOC_MODULE)-sections.txt; \
+ fi
distclean-local:
@rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \
diff --git a/gtk-doc.notmpl.make b/gtk-doc.notmpl.make
index e791656..30f4eb2 100644
--- a/gtk-doc.notmpl.make
+++ b/gtk-doc.notmpl.make
@@ -223,6 +223,9 @@ clean-local:
@if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-types" ; then \
rm -f $(DOC_MODULE).types; \
fi
+ @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-sections" ; then \
+ rm -f $(DOC_MODULE)-sections.txt; \
+ fi
distclean-local:
@rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]