@@ -349,6 +349,14 @@ SNAPSHOT_DEPS=$(SNAPSHOT_SRCS:.ml=.d)
349349# To work around this problem, we should touch a global stamp file , too complex to maintain..
350350# Gave up, make can not handle delete/adding new files correctly
351351# Let's make it still work and fail to build, delegating `make clean`
352+ # Actually we can not make it correct by including..
353+ # if we force it, then the initial build will fail
354+ # if we don't force it, then if we remove bin/bsb.d
355+ # The build will never be re-triggered -- ninja seems to have special support for this semantics
356+ # if we move files around, it will cause file failure
357+ # Note the currently snapshot mode means if we don't
358+ # generate ml files it will not be included
359+
352360
353361snapshotml :./bin/bspack.exe $(SNAPSHOT_SRCS )
354362
@@ -357,35 +365,25 @@ force-snapshotml:
357365 make snapshotml
358366
359367bin/bsppx.ml :./bin/bspack.exe
360- $< -bs-MD -prelude-str ' module Config = Config_bsppx' -bs-exclude-I config -I ../ocaml/utils/ -I ../ocaml/parsing/ -I common -I ext -I syntax -I core -bs-main Bsppx_main -o $@
361-
368+ BS_DEBUG=false $< -bs-MD -prelude-str ' module Config = Config_bsppx' -bs-exclude-I config -I ../ocaml/utils/ -I ../ocaml/parsing/ -I common -I ext -I syntax -I core -bs-main Bsppx_main -o $@
362369
363370bin/whole_compiler.ml :./bin/bspack.exe
364- $< -bs-MD -prelude-str ' module Config = Config_whole_compiler' -bs-exclude-I config -o $@ -bs-main Js_main -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/typing/ -I ../ocaml/bytecomp/ -I ../ocaml/driver/ -I stubs -I ext -I syntax -I depends -I common -I core
371+ BS_DEBUG=false $< -bs-MD -prelude-str ' module Config = Config_whole_compiler' -bs-exclude-I config -o $@ -bs-main Js_main -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/typing/ -I ../ocaml/bytecomp/ -I ../ocaml/driver/ -I stubs -I ext -I syntax -I depends -I common -I core
365372
366373bin/bsdep.ml :./bin/bspack.exe
367- BS_OCAMLDEP=true $< -bs-MD -prelude-str ' module Config = Config_bsdep' -bs-exclude-I config -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/driver -I ../ocaml/tools -I common -I ext -I syntax -I depends -I core -bs-main Ocamldep -o $@
374+ BS_DEBUG=false BS_OCAMLDEP=true $< -bs-MD -prelude-str ' module Config = Config_bsdep' -bs-exclude-I config -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/driver -I ../ocaml/tools -I common -I ext -I syntax -I depends -I core -bs-main Ocamldep -o $@
368375
369376bin/bsb_helper.ml :./bin/bspack.exe
370- $< -bs-MD -I common -I ext -I syntax -I depends -I bsb -bs-main Bsb_helper_main -o $@
371-
377+ BS_DEBUG=false $< -bs-MD -I common -I ext -I syntax -I depends -I bsb -bs-main Bsb_helper_main -o $@
372378
373379bin/bsb.ml :./bin/bspack.exe
374- $< -bs-MD -I common -I ext -I syntax -I depends -I bsb -I ext -bs-main Bsb_main -o $@
380+ BS_DEBUG=false $< -bs-MD -I common -I ext -I syntax -I depends -I bsb -I ext -bs-main Bsb_main -o $@
375381
376- # Actually we can not make it correct by including..
377- # if we force it, then the initial build will fail
378- # if we don't force it, then if we remove bin/bsb.d
379- # The build will never be re-triggered
380- # if we move files around, it will cause file failure
381- # Note the currently snapshot mode means if we don't
382- # generate ml files it will not be included
383382bin/bspp.ml :./bin/bspack.exe
384- BS_MIN_LEX_DEPS=true $< -bs-MD -bs-exclude-I config -I ../ocaml/utils/ -I ../ocaml/parsing? parser -I common -I ext -I syntax -I depends -I bspp -I core -bs-main Bspp_main -o $@
385-
383+ BS_DEBUG=false BS_MIN_LEX_DEPS=true $< -bs-MD -bs-exclude-I config -I ../ocaml/utils/ -I ../ocaml/parsing? parser -I common -I ext -I syntax -I depends -I bspp -I core -bs-main Bspp_main -o $@
386384
387385bin/js_compiler.ml :./bin/bspack.exe
388- BS_COMPILER_IN_BROWSER=true bspack.exe -bs-MD -prelude-str ' module Config = Config_whole_compiler' -bs-exclude-I config -o $@ -bs-main Jsoo_main -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/typing/ -I ../ocaml/bytecomp/ -I ../ocaml/driver/ -I ext -I syntax -I depends -I common -I core
386+ BS_DEBUG=false BS_COMPILER_IN_BROWSER=true bspack.exe -bs-MD -prelude-str ' module Config = Config_whole_compiler' -bs-exclude-I config -o $@ -bs-main Jsoo_main -I ../ocaml/utils/ -I ../ocaml/parsing/ -I ../ocaml/typing/ -I ../ocaml/bytecomp/ -I ../ocaml/driver/ -I ext -I syntax -I depends -I common -I core
389387
390388bin/all_ounit_tests.ml :./bin/bspack.exe
391389 $< -bs-MD -I ounit -I ounit_tests -I stubs -I bsb -I common -I ext -I syntax -I depends -I bspp -I core -bs-main Ounit_tests_main -o $@
0 commit comments