]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-09-23 Colin Watson <cjwatson@ubuntu.com>
authorcjwatson <cjwatson@localhost>
Wed, 23 Sep 2009 17:18:06 +0000 (17:18 +0000)
committercjwatson <cjwatson@localhost>
Wed, 23 Sep 2009 17:18:06 +0000 (17:18 +0000)
* configure.ac: Call AC_PROG_MKDIR_P.
* Makefile.in (docs/stamp-vti): Create docs directory.  Create
version.texi in $(builddir) rather than $(srcdir).
(docs/grub.info): Create docs directory.  Prepend $(builddir)/docs
to makeinfo's @include search path.

ChangeLog
Makefile.in
configure.ac

index bfdbc5a43fe6dfa023295c811f26a5ca5cb3a93a..dc343d1d9f5033611494a1f797011adc393ffacf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-09-23  Colin Watson  <cjwatson@ubuntu.com>
+
+       * configure.ac: Call AC_PROG_MKDIR_P.
+       * Makefile.in (docs/stamp-vti): Create docs directory.  Create
+       version.texi in $(builddir) rather than $(srcdir).
+       (docs/grub.info): Create docs directory.  Prepend $(builddir)/docs
+       to makeinfo's @include search path.
+
 2009-09-23  Felix Zielcke  <fzielcke@z-51.de>
 
        * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
index ee4589a789c2bfab7b4b69bfcc73b851f7d4fd1b..363d696f12ffab29f470b2e8dfc3ad06a53dc0b3 100644 (file)
@@ -59,6 +59,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+MKDIR_P = @MKDIR_P@
 
 mkinstalldirs = $(srcdir)/mkinstalldirs
 
@@ -179,20 +180,22 @@ MOSTLYCLEANFILES += vti.tmp
 MAINTAINER_CLEANFILES += docs/stamp-vti docs/version.texi
 docs/version.texi: docs/stamp-vti
 docs/stamp-vti: docs/grub.texi
+       $(MKDIR_P) docs
        (set `$(SHELL) $(srcdir)/docs/mdate-sh $<`; \
        echo "@set UPDATED $$1 $$2 $$3"; \
        echo "@set UPDATED-MONTH $$2 $$3"; \
        echo "@set EDITION $(PACKAGE_VERSION)"; \
        echo "@set VERSION $(PACKAGE_VERSION)") > vti.tmp
-       @cmp -s vti.tmp $(srcdir)/docs/version.texi \
-         || (echo "Updating $(srcdir)/docs/version.texi"; \
-             cp vti.tmp $(srcdir)/docs/version.texi)
+       @cmp -s vti.tmp $(builddir)/docs/version.texi \
+         || (echo "Updating $(builddir)/docs/version.texi"; \
+             cp vti.tmp $(builddir)/docs/version.texi)
        -@rm -f vti.tmp
-       @cp $(srcdir)/docs/version.texi $@
+       @cp $(builddir)/docs/version.texi $@
 
 # Use --force until such time as the documentation is cleaned up.
 docs/grub.info: docs/grub.texi docs/version.texi docs/fdl.texi
-       $(MAKEINFO) --no-split --force $< -o $@ || :
+       $(MKDIR_P) docs
+       $(MAKEINFO) -P $(builddir)/docs --no-split --force $< -o $@ || :
 
 ifeq (, $(UNIFONT_BDF))
 else
index e827a32c297c2fed76e5c1148b4a73466f564fa7..4d221b4d67cde13e635af239c6cdc13419cfe409 100644 (file)
@@ -144,6 +144,7 @@ done
 AC_PROG_INSTALL
 AC_PROG_AWK
 AC_PROG_MAKE_SET
+AC_PROG_MKDIR_P
 
 # These are not a "must".
 AC_PATH_PROG(RUBY, ruby)