Improve copy_files test for c files to make sure source is tracked
This commit is contained in:
parent
5901d7dee3
commit
f365e8f157
|
@ -12,3 +12,8 @@
|
||||||
(executable
|
(executable
|
||||||
((name test)
|
((name test)
|
||||||
(libraries (foo))))
|
(libraries (foo))))
|
||||||
|
|
||||||
|
(alias
|
||||||
|
((name bar-source)
|
||||||
|
(deps (bar.h))
|
||||||
|
(action (echo "${read:bar.h}"))))
|
||||||
|
|
|
@ -10,3 +10,6 @@
|
||||||
ocamlmklib dllfoo_stubs.so,libfoo_stubs.a
|
ocamlmklib dllfoo_stubs.so,libfoo_stubs.a
|
||||||
ocamlopt test.{cmx,o}
|
ocamlopt test.{cmx,o}
|
||||||
ocamlopt test.exe
|
ocamlopt test.exe
|
||||||
|
$ $JBUILDER build -j1 @bar-source --root .
|
||||||
|
#line 1 "include/bar.h"
|
||||||
|
int foo () {return 42;}
|
||||||
|
|
Loading…
Reference in New Issue