]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
docs: Rename the .devhelp2 file to match the directory name
authorJason Conti <jason.conti@gmail.com>
Sun, 20 Nov 2011 23:17:23 +0000 (00:17 +0100)
committerJürg Billeter <j@bitron.ch>
Wed, 30 Nov 2011 14:02:46 +0000 (15:02 +0100)
When searching for devhelp books, devhelp expects the .devhelp2 filename
to match the directory name.

Fixes bug 664167.

doc/vala/Makefile.am

index 9e359c985b68416fffff3278f1e58cf1e07a968c..c980cf6a0dfeffcbc5ee71dd39042b1bd68e4f79 100644 (file)
@@ -1,6 +1,8 @@
 NULL =
 
-bookdir=$(datadir)/devhelp/books/vala@PACKAGE_SUFFIX@
+book_name=vala@PACKAGE_SUFFIX@
+
+bookdir=$(datadir)/devhelp/books/$(book_name)
 
 chapter_data = \
        overview.html \
@@ -21,7 +23,7 @@ chapter_data = \
 built_data = \
        index.html \
        $(chapter_data) \
-       vala.devhelp2 \
+       $(book_name).devhelp2 \
        $(NULL)
 
 if HAVE_XSLTPROC
@@ -36,8 +38,8 @@ index.html: $(book_sources) xhtml.xsl
 
 $(chapter_data): index.html
 
-vala.devhelp2: $(book_sources) devhelp.xsl
-       $(AM_V_GEN)$(XSLTPROC) --xinclude $(srcdir)/devhelp.xsl $(srcdir)/index.xml > vala.devhelp2
+$(book_name).devhelp2: $(book_sources) devhelp.xsl
+       $(AM_V_GEN)$(XSLTPROC) --xinclude $(srcdir)/devhelp.xsl $(srcdir)/index.xml > $(book_name).devhelp2
 
 book_sources = \
        index.xml \