forked from Normation/rudder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gpoblon
committed
Feb 27, 2020
1 parent
a674906
commit d98e063
Showing
2 changed files
with
28 additions
and
19 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 |
---|---|---|
@@ -1,17 +1,26 @@ | ||
build: | ||
# check for cargo, perl, cpan, pip, pip3 install | ||
# sudo cpan TOML | ||
# pip3 install toml | ||
cargo build | ||
.DEFAULT_GOAL := build | ||
|
||
cargo: | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
|
||
deps: | ||
apt update && apt upgrade -y | ||
apt install -y python3-pip perl | ||
perl -MCPAN -e 'install TOML::Parser' | ||
pip3 install toml | ||
|
||
build: deps | ||
perl tools/generate-lib | ||
cargo build --release | ||
|
||
test: | ||
cargo test | ||
cargo test | ||
|
||
doc: | ||
cargo doc --help | ||
cargo doc --help | ||
|
||
stats: | ||
@ echo -n "TODOS : " && grep -r TODO src | wc -l | ||
@ echo -n "Commits: " && git log --oneline | wc -l | ||
@ tokei | ||
# @ echo "Lines : " && find . -name '*.rs' | xargs wc -l | ||
@ echo -n "TODOS : " && grep -r TODO src | wc -l | ||
@ echo -n "Commits: " && git log --oneline | wc -l | ||
@ tokei | ||
# @ echo "Lines : " && find . -name '*.rs' | xargs wc -l |
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