Add setup target to builder script

This commit is contained in:
Sameer Rahmani 2020-07-23 21:53:42 +01:00
parent 90b39435b6
commit b442d5e83c
2 changed files with 11 additions and 11 deletions

View File

@ -1,16 +1,11 @@
* Serene lang
** Setup development environment
*** Emacs
Install the dependencies including ~clangd~ and just run ~lsp~
Setup the githook and install dependencies using the following commands:
**** Requirements on the Rust side
To setup the dev envrionment you need to have *Clippy* and *RLS* installed. Run the
following commands to install them:
#+BEGIN_SRC bash
rustup component add rls --toolchain stable-x86_64-unknown-linux-gnu
rustup component add --toolchain stable-x86_64-unknown-linux-gnu clippy
rustup component add rustfmt
#+BEGIN_EXAMPLE bash
./builder deps
./builder setup
#+END_SRC
Use your desired toolchain instead of *stable-x86_64-unknown-linux-gnu*
*** Emacs
Install the dependencies including ~clangd~ and just run ~lsp~

View File

@ -72,6 +72,11 @@ case "$command" in
clang-tools-10 valgrind cmake ninja-build \
doxygen
;;
"setup")
pushd ./scripts
./scripts/git-pre-commit-format install
popd
;;
"build")
clean
mkdir -p $BUILD_DIR