manuals.mak: attempt to make 'make distcheck' work with -jN
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 26 May 2009 09:38:56 +0000 (10:38 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 26 May 2009 09:38:56 +0000 (10:38 +0100)
Attempt to fix the 'cannot create regular file build/image.entitites:
file exists' error I got.

docs/manuals.mak

index 229969c..f4497de 100644 (file)
@@ -80,12 +80,12 @@ debug:
 
 # a rule to copy all of the source for docs into $(builddir)/build
 $(BUILDDIR)/$(MAIN): $(XML) $(CSS) $(EXTRA_SRC)
-       @-mkdir -p $(BUILDDIR)
-       @if test "x$(EXTRA_SRC)" != "x"; then for a in $(EXTRA_SRC); do cp $(srcdir)/$$a $(BUILDDIR); done; fi
-       @for a in $(XML); do cp $(srcdir)/$$a $(BUILDDIR); done
-       @for a in $(CSS); do cp $(srcdir)/$$a $(BUILDDIR); done
-       @cp ../version.entities $(BUILDDIR)
-       @cp $(top_srcdir)/docs/url.entities $(BUILDDIR)
+       @-mkdir -p $(BUILDDIR); \
+       if test "x$(EXTRA_SRC)" != "x"; then for a in $(EXTRA_SRC); do cp $(srcdir)/$$a $(BUILDDIR); done; fi ; \
+       for a in $(XML); do cp $(srcdir)/$$a $(BUILDDIR); done ; \
+       for a in $(CSS); do cp $(srcdir)/$$a $(BUILDDIR); done ; \
+       cp ../version.entities $(BUILDDIR) ; \
+       cp $(top_srcdir)/docs/url.entities $(BUILDDIR)
 
 # we should switch to xsltproc
 # docbook2html aka jade can't add the encoding easily to the html meta