Skip to content

Commit efcc327

Browse files
committed
refactor(makefile): reorganize targets
Reordered Makefile targets for better readability and maintainability.
1 parent dc52abe commit efcc327

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

Makefile

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
install:
44
./scripts/setup_dev_venv.sh
55

6+
# check if development environment is set up correctly
7+
.PHONY: check_dev_env
8+
check_dev_env:
9+
@./scripts/check_dev_env.sh
10+
11+
# reinstall cardano-clusterlib-py in editable mode from a given git repository
12+
.PHONY: reinstall-editable
13+
reinstall-editable:
14+
@if [ -z "$(repo)" ]; then \
15+
echo "Usage: make reinstall-editable repo=/path/to/cardano-clusterlib-py" >&2; \
16+
exit 1; \
17+
fi
18+
@./scripts/clusterlib_reinstall_editable.sh "$(repo)"
19+
620
# initialize linters
721
.PHONY: init_linters
822
init_lint:
@@ -15,32 +29,14 @@ init_lint:
1529
lint:
1630
pre-commit run -a --show-diff-on-failure --color=always
1731

18-
19-
# check if development environment is set up correctly
20-
.PHONY: check_dev_env
21-
check_dev_env:
22-
@./scripts/check_dev_env.sh
23-
24-
2532
# build sphinx documentation
2633
.PHONY: build_doc
2734
build_doc:
2835
mkdir -p src_docs/build
2936
$(MAKE) -C src_docs clean
3037
$(MAKE) -C src_docs html
3138

32-
3339
# build and deploy sphinx documentation
3440
.PHONY: doc
3541
doc:
3642
./scripts/deploy_doc.sh
37-
38-
39-
# reinstall cardano-clusterlib-py in editable mode from a given git repository
40-
.PHONY: reinstall-editable
41-
reinstall-editable:
42-
@if [ -z "$(repo)" ]; then \
43-
echo "Usage: make reinstall-editable repo=/path/to/cardano-clusterlib-py" >&2; \
44-
exit 1; \
45-
fi
46-
@./scripts/clusterlib_reinstall_editable.sh "$(repo)"

0 commit comments

Comments
 (0)