<<< Date Index >>>     <<< Thread Index >>>

[PATCH] fix reldate.h make rules



Hi,

with the current CVS version, the toplevel Makefile generates reldate.h in its
current working directory, i.e. $top_builddir. But doc/Makefile expects
reldate.h in $top_srcdir. Therefore, a build of mutt fails if you do not build
in the source directory (as I regularly do).

The attached patch fixes doc/Makefile.in.

Regards

Christoph
-- 
FH Worms - University of Applied Sciences
Fachbereich Informatik / Telekommunikation
Erenburgerstr. 19, 67549 Worms, Germany
Index: doc/Makefile.in
===================================================================
RCS file: /home/roessler/cvs/mutt/doc/Makefile.in,v
retrieving revision 3.24
diff -u -u -r3.24 Makefile.in
--- doc/Makefile.in     4 Jul 2006 18:56:04 -0000       3.24
+++ doc/Makefile.in     11 Jul 2006 10:36:19 -0000
@@ -182,9 +182,9 @@
        $(EDIT) $(srcdir)/mutt.man > $@
 
 stamp-doc-xml: $(top_srcdir)/makedoc.c $(top_srcdir)/init.h manual.xml.head 
manual.xml.tail \
-               $(top_srcdir)/VERSION $(top_srcdir)/reldate.h
+               $(top_srcdir)/VERSION $(top_builddir)/reldate.h
        $(MAKE) ../makedoc$(EXEEXT)
-       ( sed -e "s/@VERSION\@/`cat $(top_srcdir)/VERSION` (`cut -d\\" -f2 
$(top_srcdir)/reldate.h`)/" $(srcdir)/manual.xml.head ;\
+       ( sed -e "s/@VERSION\@/`cat $(top_srcdir)/VERSION` (`cut -d\\" -f2 
$(top_builddir)/reldate.h`)/" $(srcdir)/manual.xml.head ;\
          $(MAKEDOC_CPP) $(top_srcdir)/init.h | ../makedoc -s ) |      \
                cat - $(srcdir)/manual.xml.tail > manual.xml
        touch stamp-doc-xml