Makefile fix
This commit is contained in:
parent
43679bd04f
commit
fa7d64c291
7
Makefile
7
Makefile
|
@ -166,9 +166,10 @@ publish-book: | book
|
||||||
rm -rf tmp-book/* && \
|
rm -rf tmp-book/* && \
|
||||||
cp -a docs/book/* tmp-book/ && \
|
cp -a docs/book/* tmp-book/ && \
|
||||||
cd tmp-book && \
|
cd tmp-book && \
|
||||||
git add . && \
|
git add . && { \
|
||||||
git commit -m "make publish-book" && \
|
git commit -m "make publish-book" && \
|
||||||
git push origin gh-pages && \
|
git push origin gh-pages || true; } && \
|
||||||
|
cd .. && \
|
||||||
git worktree remove -f tmp-book && \
|
git worktree remove -f tmp-book && \
|
||||||
rm -rf tmp-book
|
rm -rf tmp-book
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,22 @@ Variables -> Path -> Edit -> New -> C:\mingw-w64\mingw64\bin (it's "C:\mingw-w64
|
||||||
|
|
||||||
Install [Git for Windows](https://gitforwindows.org/) and use a "Git Bash" shell to clone and build nim-beacon-chain.
|
Install [Git for Windows](https://gitforwindows.org/) and use a "Git Bash" shell to clone and build nim-beacon-chain.
|
||||||
|
|
||||||
|
Install [CMake](https://cmake.org/) to be able to build libunwind (used for [lightweight stack traces](https://github.com/status-im/nim-libbacktrace)).
|
||||||
|
|
||||||
|
When running the tests, you might hit some Windows path length limits. Increase them by editing the Registry in a PowerShell instance with administrator privileges:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1
|
||||||
|
```
|
||||||
|
|
||||||
|
and run this in a "Git Bash" terminal:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git config --global core.longpaths true
|
||||||
|
```
|
||||||
|
|
||||||
If you don't want to compile PCRE separately, you can fetch pre-compiled DLLs with:
|
If you don't want to compile PCRE separately, you can fetch pre-compiled DLLs with:
|
||||||
```bash
|
```bash
|
||||||
mingw32-make # this first invocation will update the Git submodules
|
|
||||||
mingw32-make fetch-dlls # this will place the right DLLs for your architecture in the "build/" directory
|
mingw32-make fetch-dlls # this will place the right DLLs for your architecture in the "build/" directory
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -35,9 +48,9 @@ mingw32-make test # run the test suite
|
||||||
After cloning the repo:
|
After cloning the repo:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
make # The first `make` invocation will update all Git submodules and prompt you to run `make` again.
|
# The first `make` invocation will update all Git submodules.
|
||||||
# It's only required once per Git clone. You'll run `make update` after each `git pull`, in the future,
|
# You'll run `make update` after each `git pull`, in the future, to keep those submodules up to date.
|
||||||
# to keep those submodules up to date.
|
make
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
make test
|
make test
|
||||||
|
|
Loading…
Reference in New Issue