Skip to content

Commit 8107b7d

Browse files
committed
wip
1 parent 7f2d788 commit 8107b7d

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ default: help
2121
help:
2222
@echo "usage: make TARGET [VAR=VAL ...]"
2323
@echo "base targets: split lp lpo clean-<target> clean-all"
24-
@echo "rocq targets: v merge-spec-files rm-empty-deps vo opam"
25-
@echo "lean targets: lean"
24+
@echo "rocq targets: v merge-spec-files rm-empty-deps vo"
25+
@echo "lean targets: lean olean"
2626
@echo "variables:"
2727
@echo " MAX_PROOF: hol2dk max proof size (default is $(MAX_PROOF))"
2828
@echo " MAX_ABBREV: hol2dk max abbrev size (default is $(MAX_ABBREV))"
@@ -416,3 +416,7 @@ else
416416
-rm -f $@
417417
for f in $(STI_FILES:%.sti=%); do echo "import $(ROOT_PATH).$$f" >> $@; done
418418
endif
419+
420+
.PHONY: olean
421+
olean:
422+
LEAN_STACK_SIZE_KB=0 lake build

config

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,14 @@ do
197197
ln -f -s $HOLLIGHT_DIR/${hollight_file%.ml}.$ext
198198
done
199199

200-
if test -n "$leanfiles" -a ! -d .lake
200+
if test -n "$leanfiles"
201201
then
202-
echo lake init $root_path math
203-
lake init $root_path math
204-
rm -f $root_path.lean $root_path/Basic.lean
202+
if test ! -d .lake
203+
then
204+
echo lake init $root_path math
205+
lake init $root_path math
206+
rm -f $root_path.lean $root_path/Basic.lean
207+
fi
205208
for f in $leanfiles
206209
do
207210
echo cp -f $f $root_path

0 commit comments

Comments
 (0)