@@ -349,6 +349,14 @@ SNAPSHOT_DEPS=$(SNAPSHOT_SRCS:.ml=.d)
349
349
# To work around this problem, we should touch a global stamp file , too complex to maintain..
350
350
# Gave up, make can not handle delete/adding new files correctly
351
351
# 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
+
352
360
353
361
snapshotml :./bin/bspack.exe $(SNAPSHOT_SRCS )
354
362
@@ -357,35 +365,25 @@ force-snapshotml:
357
365
make snapshotml
358
366
359
367
bin/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 $@
362
369
363
370
bin/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
365
372
366
373
bin/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 $@
368
375
369
376
bin/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 $@
372
378
373
379
bin/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 $@
375
381
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
383
382
bin/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 $@
386
384
387
385
bin/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
389
387
390
388
bin/all_ounit_tests.ml :./bin/bspack.exe
391
389
$< -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