Skip to content

Commit

Permalink
Simplify Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dam5s committed Oct 5, 2023
1 parent 67b8827 commit 3c298b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
with:
sdk: 3.1.0
- run: make install
- run: make
- run: make check
21 changes: 6 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
default: check
.PHONY: install check

.PHONY: tasks install format test check

tasks: ## Print available tasks
@printf "\nUsage: make [target]\n\n"
@grep -E '^[a-z][^:]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'

install: ## Fetch dependencies for cyclic_dependency_checks
install:
dart pub get

format: ## Format cyclic_dependency_checks code
dart format lib --line-length 100 --set-exit-if-changed

test: ## Run cyclic_dependency_checks tests
dart scripts/generate_big_codebase.dart; dart test

check: format test ## Check formatting, cycles and run tests
check:
dart format lib --line-length 100 --set-exit-if-changed;
dart scripts/generate_big_codebase.dart;
dart test;

0 comments on commit 3c298b0

Please sign in to comment.