Skip to content

Commit

Permalink
mk: removing extraneous .ml files after extracting
Browse files Browse the repository at this point in the history
Helps when renaming modules.
  • Loading branch information
mtzguido committed Jan 9, 2025
1 parent c72e8b7 commit 4af05ad
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mk/fstar-12.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,8 @@ depend: $(CACHE_DIR)/.depend$(TAG)
include $(CACHE_DIR)/.depend$(TAG)

all-ml: $(ALL_ML_FILES)
@# Remove extraneous .ml files, which can linger after
@# module renamings.
rm -f $(filter-out $(ALL_ML_FILES), $(wildcard $(OUTPUT_DIR)/*.ml))

all-checked: $(ALL_CHECKED_FILES)
5 changes: 5 additions & 0 deletions mk/lib.mk
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,9 @@ all-checked: $(ALL_CHECKED_FILES)
# These targets imply verification of every file too, regardless
# of extraction.
all-ml: all-checked $(ALL_ML_FILES)
@# Remove extraneous .ml files, which can linger after
@# module renamings.
rm -f $(filter-out $(ALL_ML_FILES), $(wildcard $(OUTPUT_DIR)/*.ml))

all-fs: all-checked $(ALL_FS_FILES)
rm -f $(filter-out $(ALL_FS_FILES), $(wildcard $(OUTPUT_DIR)/*.fs))
3 changes: 3 additions & 0 deletions mk/plugins.mk
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,6 @@ depend: $(CACHE_DIR)/.depend$(TAG)
include $(CACHE_DIR)/.depend$(TAG)

all-ml: $(ALL_ML_FILES)
@# Remove extraneous .ml files, which can linger after
@# module renamings.
rm -f $(filter-out $(ALL_ML_FILES), $(wildcard $(OUTPUT_DIR)/*.ml))

0 comments on commit 4af05ad

Please sign in to comment.