diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-12-19 11:29:55 +0000 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2014-12-29 15:29:08 +0100 |
commit | bea2c3639b429e043ccff89f868cf77556c87c88 (patch) | |
tree | 7a0593fde8e61f3209ae20fa6c3a171ea386355c | |
parent | 034942538432979f51e749ec2c91ec1cd75a7f00 (diff) | |
download | gtk-doc-bea2c3639b429e043ccff89f868cf77556c87c88.tar.gz |
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
-rw-r--r-- | examples/Makefile.am | 5 | ||||
-rw-r--r-- | gtk-doc.make | 3 | ||||
-rw-r--r-- | 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 \ |