-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1615 from GaloisInc/saw-core-coq/ci
Add generation of Coq translator libraries to CI
- Loading branch information
Showing
6 changed files
with
25 additions
and
2,181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
all: build | ||
all: Makefile.coq | ||
|
||
Makefile.coq: _CoqProject | ||
coq_makefile -f $< -o $@ | ||
|
||
build: Makefile.coq | ||
make -f Makefile.coq | ||
include Makefile.coq | ||
|
||
clean: Makefile.coq | ||
make -f Makefile.coq clean | ||
# Set the SAW variable to the appropriate command. Always look in the path | ||
# first, otherwise fall back on cabal run saw, unless running in CI because if | ||
# saw is not in the path in CI then something else is terribly wrong and that | ||
# should be an error | ||
SAW=$(shell which saw) | ||
ifeq ($(SAW),) | ||
ifeq ($(CI),) | ||
SAW=cabal run saw | ||
else | ||
$(error Could not find SAW executable; PATH = $(PATH)) | ||
endif | ||
endif | ||
|
||
%.vo: Makefile.coq | ||
make -f Makefile.coq $@ | ||
generated/CryptolToCoq/SAWCorePrelude.v: ../../saw-core/prelude/Prelude.sawcore | ||
(mkdir -p generated/CryptolToCoq; cd ../saw; $(SAW) generate_scaffolding.saw) | ||
|
||
generated/CryptolToCoq/CryptolPrimitivesForSAWCore.v: ../../cryptol-saw-core/saw/Cryptol.sawcore | ||
(mkdir -p generated/CryptolToCoq; cd ../saw; $(SAW) generate_scaffolding.saw) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.v |
Oops, something went wrong.