Skip to content

Commit

Permalink
Makefile: a pulse rule, add Pulse to the include path
Browse files Browse the repository at this point in the history
  • Loading branch information
tahina-pro committed Sep 26, 2023
1 parent 2bf6ec5 commit 2259af3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lowparse/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ ALREADY_CACHED = --already_cached *,-LowParse
FSTAR_OPTIONS += --use_hints --cache_checked_modules $(addprefix --include , $(INCLUDE_PATHS)) $(INCLUDE_KRML) $(ALREADY_CACHED)
ifneq (,$(STEEL_HOME))
FSTAR_OPTIONS += --include $(STEEL_HOME)/lib/steel --include $(STEEL_HOME)/lib/steel/c --load_cmxs steel
FSTAR_OPTIONS += --include $(STEEL_HOME)/lib/steel/pulse --include $(STEEL_HOME)/share/steel/examples/pulse/lib --include $(STEEL_HOME)/share/steel/examples/pulse/lib/_output/cache
endif

LOWPARSE_FILES := $(wildcard LowParse.*.fst) $(wildcard LowParse.*.fsti)

ifeq (,$(STEEL_HOME))
LOWPARSE_FILES := $(filter-out LowParse.Steel%,$(LOWPARSE_FILES))
LOWPARSE_FILES := $(filter-out LowParse.Pulse.%,$(LOWPARSE_FILES))
endif

clean:
Expand Down Expand Up @@ -64,6 +66,10 @@ $(STEEL_FUNCTOR_VARIANTS): %: $(STEEL_FUNCTOR_FSTI_CHECKEDS) $(addprefix %/,$(ST

steel: $(STEEL_FUNCTOR_VARIANTS) $(filter LowParse.Steel%,$(ALL_CHECKED_FILES))

.PHONY: pulse

pulse: $(filter LowParse.Pulse.%,$(ALL_CHECKED_FILES))

endif

lowparse: steel $(ALL_CHECKED_FILES)
Expand Down

0 comments on commit 2259af3

Please sign in to comment.