mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
ocaml: Only build the tests when running 'make check'.
Make the tests 'check_DATA' so they only get built when running the tests. This saves a couple of seconds on the build time.
This commit is contained in:
@@ -142,9 +142,9 @@ endif
|
||||
|
||||
TESTS = run-bindtests $(test_progs_all)
|
||||
|
||||
noinst_DATA += bindtests.bc $(test_progs_all)
|
||||
check_DATA = bindtests.bc $(test_progs_all)
|
||||
if HAVE_OCAMLOPT
|
||||
noinst_DATA += bindtests.opt
|
||||
check_DATA += bindtests.opt
|
||||
endif
|
||||
|
||||
%.bc: %.cmo mlguestfs.cma
|
||||
@@ -204,6 +204,6 @@ install-data-hook:
|
||||
rm $(DESTDIR)$(OCAMLLIB)/guestfs/bindtests.*
|
||||
rm $(DESTDIR)$(OCAMLLIB)/guestfs/libguestfsocaml.a
|
||||
|
||||
CLEANFILES += $(noinst_DATA)
|
||||
CLEANFILES += $(noinst_DATA) $(check_DATA)
|
||||
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user