-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for CoqMakefile.local-late
This allows users to write rules that depend on variables such as VOFILES and VDFILE, which is essential in some of my use-cases (for example, to properly handle seamless version switching, I need to make all of the .vo files depend on a file where I record the version of Coq being used). Fixes #10912
- Loading branch information
1 parent
8b3ce74
commit ce75697
Showing
7 changed files
with
39 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- **Added:** | ||
``coq_makefile``\-made ``Makefile``\s now support inclusion of a | ||
``.local-late`` file at the very end, in case the user wants to have access | ||
to more variables (`#12411 <https://github.com/coq/coq/pull/12411>`_, fixes | ||
`#10912 <https://github.com/coq/coq/issues/10912>`_, by Jason Gross). |
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
4 changes: 4 additions & 0 deletions
4
test-suite/coq-makefile/local-late-extension/Makefile.local-late
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,4 @@ | ||
MYVOFILES := $(VOFILES) | ||
|
||
printvo:: | ||
echo '$(MYVOFILES)' |
2 changes: 2 additions & 0 deletions
2
test-suite/coq-makefile/local-late-extension/make-printvo.log.expected
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,2 @@ | ||
echo 'foo.vo' | ||
foo.vo |
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,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
. ../template/path-init.sh | ||
|
||
set -x | ||
coq_makefile -Q . Top foo.v -o Makefile | ||
make printvo >make-printvo.log 2>&1 | ||
diff -u make-printvo.log.expected make-printvo.log || exit $? |
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