Skip to content

Commit 071d244

Browse files
author
Edoardo Putti
committed
track isabelle binary in Makefile
1 parent 7527726 commit 071d244

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

Makefile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212

1313
# Set this to the directory containing the Isabelle2025-2 binary
1414
ISABELLE_HOME?=/Applications/Isabelle2025-2.app/bin
15+
16+
ISABELLE_BIN := $(ISABELLE_HOME)/isabelle
17+
18+
ifeq ($(wildcard $(ISABELLE_BIN)),)
19+
$(error Isabelle binary not found at $(ISABELLE_BIN). \
20+
Set ISABELLE_HOME correctly, e.g. make ISABELLE_HOME=/path/to/Isabelle/bin)
21+
endif
22+
1523
# Set this to your home directory
1624
USER_HOME?=$(HOME)
1725
# Set this to where you maintain, or want to maintain, AFP dependencies
@@ -40,10 +48,10 @@ ISABELLE_FLAGS += $(ISABELLE_REMOTE)
4048
ISABELLE_JEDIT_FLAGS += $(ISABELLE_REMOTE)
4149

4250
jedit: register-afp-components
43-
$(ISABELLE_HOME)/isabelle jedit $(ISABELLE_JEDIT_FLAGS) -l HOL -d . ./AutoCorrode.thy &
51+
$(ISABELLE_BIN) jedit $(ISABELLE_JEDIT_FLAGS) -l HOL -d . ./AutoCorrode.thy &
4452

4553
register-afp-components:
46-
$(ISABELLE_HOME)/isabelle components -u $(AFP_COMPONENT_BASE)/Word_Lib
54+
$(ISABELLE_BIN) components -u $(AFP_COMPONENT_BASE)/Word_Lib
4755

4856
build: register-afp-components
49-
$(ISABELLE_HOME)/isabelle build $(ISABELLE_FLAGS) -d . AutoCorrode
57+
$(ISABELLE_BIN) build $(ISABELLE_FLAGS) -d . AutoCorrode

0 commit comments

Comments
 (0)