test-suite/coq-makefile/gen-v-during-make/run.sh
raw| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | . ../template/init.sh |
| 4 | |
| 5 | cat > _CoqProject <<EOF |
| 6 | -R ./theories/ "" |
| 7 | theories/use.v |
| 8 | theories/generatedInPreAll.v |
| 9 | EOF |
| 10 | |
| 11 | cat > theories/use.v <<EOF |
| 12 | Require generatedInPreAll. |
| 13 | EOF |
| 14 | |
| 15 | printf 'theories/generatedInPreAll.v:\n\ttouch theories/generatedInPreAll.v\n' > Makefile.local |
| 16 | |
| 17 | rocq makefile -f _CoqProject -o Makefile |
| 18 | make |