docs: fix distcheck and ensure spec.html gets put in the right place

gtk-doc removes the 'html' directory as part of the build process
so we need to have spec.html generation depend on the gtk-doc html
target.  Also, fix up the paths to make sure the generated spec.html
gets copied into the final 'html' directory.
This commit is contained in:
Dan Williams
2011-03-04 14:38:28 -06:00
parent 32c262e1ae
commit e05fd1cc47

View File

@@ -36,12 +36,12 @@ OTHER_FILES= \
GENERATED_FILES = spec.html settings-spec.xml
spec.html: $(XMLS) $(OTHER_FILES)
spec.html: $(XMLS) $(OTHER_FILES) html-build.stamp
$(XSLTPROC) $(top_srcdir)/tools/doc-generator.xsl $(top_srcdir)/introspection/all.xml > $@
mkdir -p $(builddir)/html/
cp $(builddir)/spec.html $(builddir)/html/
cp $@ $(builddir)/html/
settings-spec.xml: generate-settings-spec $(top_builddir)/libnm-util/libnm-util.la spec.html
settings-spec.xml: generate-settings-spec $(top_builddir)/libnm-util/libnm-util.la
$(builddir)/generate-settings-spec $(builddir)/$@
all: $(GENERATED_FILES)