docs: fix distcheck error building settings spec
authorDan Williams <dcbw@redhat.com>
Mon, 14 Mar 2011 15:56:56 +0000 (10:56 -0500)
committerDan Williams <dcbw@redhat.com>
Mon, 14 Mar 2011 15:56:56 +0000 (10:56 -0500)
Apparently sometimes when doing the distcheck the generator can't
open the file for writing (gets ENOACCESS) presumably because there's
already a file there that's read-only.  So remove any existing
settings spec before regenerating.

docs/api/Makefile.am

index f4067b8..687d9cf 100644 (file)
@@ -42,6 +42,7 @@ spec.html: $(XMLS) $(OTHER_FILES) html-build.stamp
        cp $@ $(builddir)/html/
 
 settings-spec.xml: generate-settings-spec $(top_builddir)/libnm-util/libnm-util.la
+       rm -f $(builddir)/$@
        $(builddir)/generate-settings-spec $(builddir)/$@
 
 all: $(GENERATED_FILES)