-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
93 lines (71 loc) · 2.25 KB
/
Makefile
File metadata and controls
93 lines (71 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Variables
VENV_DIR := venv
BUNDLE_DIR := bundle
BUILD_DIR := build
DIST_DIR := dist
DOCS_DIR := docs
APP_NAME := abletoolkit
PYTHON_VERSION := 3.12.1
PYENV_ROOT := $(HOME)/.pyenv
PYTHON := $(PYENV_ROOT)/versions/$(PYTHON_VERSION)/bin/python
# Default target
.DEFAULT_GOAL := install
# Install tasks
clean:
@$(MAKE) -f devel/Makefile-install.mk clean
python-version:
@$(MAKE) -f devel/Makefile-install.mk python-version
setup-pyenv:
@$(MAKE) -f devel/Makefile-install.mk setup-pyenv
create-venv:
@$(MAKE) -f devel/Makefile-install.mk create-venv
install:
@$(MAKE) -f devel/Makefile-install.mk install
# Dev tasks
test:
@$(MAKE) -f devel/Makefile-dev.mk test
lint:
@$(MAKE) -f devel/Makefile-dev.mk lint
commit:
@$(MAKE) -f devel/Makefile-dev.mk commit
version:
@$(MAKE) -f devel/Makefile-dev.mk version
bump-version-minor:
@$(MAKE) -f devel/Makefile-dev.mk bump-version-minor
bump-version-major:
@$(MAKE) -f devel/Makefile-dev.mk bump-version-major
bump-version-patch:
@$(MAKE) -f devel/Makefile-dev.mk bump-version-patch
fetch-tags:
@$(MAKE) -f devel/Makefile-dev.mk fetch-tags
push-tag:
@$(MAKE) -f devel/Makefile-dev.mk push-tag
# Bundle tasks
bundle-release:
@$(MAKE) -f devel/Makefile-bundle.mk bundle-release
package-bundle:
@$(MAKE) -f devel/Makefile-bundle.mk package-bundle
# Show help
help:
@echo "Usage: make [target]"
@echo "Available targets:"
@echo " clean: Clean the project"
@echo " python-version: Get the Python version"
@echo " setup-pyenv: Setup pyenv"
@echo " create-venv: Setup virtual environment"
@echo " install: Install the project"
@echo " test: Run tests"
@echo " lint: Lint the code"
@echo " commit: Commitizen commit"
@echo " version: Show the current version of abletoolkit"
@echo " bump-version-minor: Bump the version to the next minor"
@echo " bump-version-major: Bump the version to the next major"
@echo " bump-version-patch: Bump the version to the next patch"
@echo " fetch-tags: Fetch tags from the remote repository"
@echo " push-tag: Push the tag to the remote repository"
@echo " bundle-release: Bundle the release"
@echo " package-bundle: Package the bundle"
@echo " help: Show this help message"
@echo ""
@echo "For more information, please refer to the README.md file."
@echo ""