Depend on x11-const directly, not via a stamp and submake.
authorTaylor R Campbell <campbell@mumble.net>
Wed, 7 Nov 2018 04:03:28 +0000 (04:03 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Wed, 7 Nov 2018 04:03:28 +0000 (04:03 +0000)
Going via the submake means parallel make can get confused and cause
two processes to try to build the same thing at the same time and
stomp on each other's toes.

src/x11/Makefile.am

index 7f47e7f7c269c268f35e83f1f57c832c4966f6c9..14db1303d55fae8ac8aa742bf617e17492ddcc98 100644 (file)
@@ -65,13 +65,9 @@ stamp-shim: $(c_sources) $(cdecls)
 x11-const.bin: x11-const.scm
        echo '(sf "x11-const")' | $(MIT_SCHEME_EXE) --batch-mode
 
-x11-const.scm: stamp-x11-const
+x11-const.scm: x11-const$(EXEEXT)
        ./x11-const
 
-stamp-x11-const: stamp-shim
-       $(MAKE) x11-const
-       echo "done" > $@
-
 @MIT_SCHEME_DEPS@
 stamp-scheme: stamp-shim $(sources) x11-const.bin x11.pkg
        ./compile.sh