On Thu, Oct 9, 2008 at 9:58 PM, Alon Bar-Lev <[EMAIL PROTECTED]> wrote:
> I could not reproduce this.
> If I do b/* it will be executed once for b.
> Anyway, if you are sure the modification works, it is great.
> I just don't understand why it defer.

Without the patch I can easily reproduce the problem.

$ touch api.work
$ make
make[1]: Entering directory `/home/lroussea/sc/OpenSC/svn/opensc/trunk/doc'
test -n "xsltproc"
test -n "xsltproc"
rm -fr man.tmp man.out
rm -fr man.tmp man.out
test -n "xsltproc"
rm: cannot remove directory `man.tmp': No such file or directory
rm -fr man.tmp man.out
make[1]: [man.out/opensc-explorer.1] Error 1 (ignored)
/bin/mkdir -p man.tmp
/bin/mkdir -p man.tmp
rm: cannot remove directory `man.out/man.tmp': No such file or directory
make[1]: [man.out/pkcs11-tool.1] Error 1 (ignored)
/bin/mkdir -p man.tmp
xsltproc --nonet --path "./api" --xinclude -o "man.tmp/"
"api.work/man.xsl" "./api/api.xml"
xsltproc --nonet --path "./api" --xinclude -o "man.tmp/"
"api.work/man.xsl" "./api/api.xml"
xsltproc --nonet --path "./api" --xinclude -o "man.tmp/"
"api.work/man.xsl" "./api/api.xml"
Note: meta date   : No date. Using generated date       sc_establish_context
[...]
mv man.tmp man.out
test -n "xsltproc"
rm -fr man.tmp man.out
mv man.tmp man.out
mv: cannot stat `man.tmp': No such file or directory
/bin/mkdir -p man.tmp
make[1]: *** [man.out/pkcs11-tool.1] Error 1
make[1]: *** Waiting for unfinished jobs....
[...]

I have MAKEFLAGS set to -j3 so up to 3 concurrent commands are
launched by make. You can see that 3 xsltproc are started at the same
time.
And they will all run "mv man.tmp man.out" but only one will succeed.

I could not yet reproduce the problem with a minimal Makefile. So I am
not sure of the source of the bug.

-- 
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to