Skip to content

Commit

Permalink
test.mk: skip building/running if HAS_OCAML is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
mtzguido committed Dec 4, 2024
1 parent 8a3feec commit f0c4ca6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mk/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ ifeq ($(NOVERIFY),)
all: __verify
endif

HAS_OCAML ?= 1
# We assume we have ocaml, unless HAS_OCAML= was given as an argument
# to make (this is done by binary package CI). If we don't have ocaml,
# we don't try to build or run programs.
ifeq (,$(HAS_OCAML))
NORUN := 1
NOBUILD := 1
endif

# clean
SUBDIRS_CLEAN += $(SUBDIRS)
clean: $(addsuffix .__clean, $(SUBDIRS_CLEAN))
Expand Down

0 comments on commit f0c4ca6

Please sign in to comment.