Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions fstar-helpers/Makefile.generic
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ endef
export FINDLIBS

FSTAR_INCLUDE_DIRS_EXTRA ?=
FINDLIBS_OUTPUT := $(shell bash -c '${FINDLIBS}')
FINDLIBS_OUTPUT ?= $(shell bash -c '${FINDLIBS}')
FSTAR_INCLUDE_DIRS = $(FSTAR_INCLUDE_DIRS_EXTRA) $(FINDLIBS_OUTPUT)

# Make sure FSTAR_INCLUDE_DIRS has the `proof-libs`, print hints and
Expand Down Expand Up @@ -128,10 +128,16 @@ all-keep-going:
$(Q)rm -f .depend
$(Q)$(MAKE) --keep-going .depend hax.fst.config.json verify

# If no any F* file is detected, we run hax
# Only run code extraction for build targets, not for 'clean'.
all all-keep-going:
ifeq "$(wildcard *.fst *fsti)" ""
$(shell cargo hax into fstar)
$(shell cargo hax into fstar)
endif
$(Q)rm -f .depend
all:
$(Q)$(MAKE) .depend hax.fst.config.json verify
all-keep-going:
$(Q)$(MAKE) --keep-going .depend hax.fst.config.json verify

# By default, we process all the files in the current directory
ROOTS ?= $(wildcard *.fst *fsti)
Expand Down Expand Up @@ -257,9 +263,11 @@ vscode:
$(Q)rm -f .depend
$(Q)$(MAKE) hax.fst.config.json


.PHONY: clean
SHELL=bash

# Clean target
clean:
rm -rf $(CACHE_DIR)/*
rm *.fst
rm -f *.fst *.fsti *.hints *.smt2
Loading