+2013-06-04 Corinna Vinschen <corinna@vinschen.de>
+
+ * Makefile.in: Add rule to rebuild Makefile if Makefile.in changes.
+ Include Makefile.dep last.
+ (Makefile.dep): Run xidepend within source dir. Temporarily drop
+ faq.xml from dependencies.
+ * xidepend: Fix creating base filename to accommodate VPATH.
+
2013-06-04 Corinna Vinschen <corinna@vinschen.de>
* new-features.xml (ov-new1.7.19): Align mandatory locking text to
XMLTO:=xmlto --skip-validation --with-dblatex
include $(srcdir)/../Makefile.common
--include $(srcdir)/Makefile.dep
FAQ_SOURCES:= $(wildcard ${srcdir}/faq*.xml)
cygwin-ug-net/cygwin-ug-net.pdf \
cygwin-api/cygwin-api.pdf
+Makefile: ${srcdir}/Makefile.in
+ /bin/sh ./config.status
+
clean:
rm -f Makefile.dep
rm -f doctool.exe doctool.o
cygwin-docs.tar.bz2 : $(TBFILES) $(TBDEPS)
find $(TBFILES) $(TBDIRS) \! -type d | sort | tar -T - -cf - | bzip2 > cygwin-docs.tar.bz2
-Makefile.dep: cygwin-ug-net.xml faq.xml
- $(srcdir)/xidepend $^ > $@
+Makefile.dep: cygwin-ug-net.xml
+ builddir=`pwd` \
+ && cd $(srcdir) \
+ && $(srcdir)/xidepend $^ > "$${builddir}/$@"
+
+-include Makefile.dep
if fgrep -q 'xi:include' "$f"
then
# This file uses XIncludes. Let's chase its deps recursively.
- base=`echo $f | sed -e s/\.xml//`
+ base=`basename "$f" .xml`
if [ $subproc -eq 0 ] ; then echo -n "$base/$base.html:" ; fi
deps=`grep 'xi:include.*href' "$f" | cut -f2 -d\" | tr '\n' ' '`