-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 1.05 KB
/
Makefile
File metadata and controls
42 lines (33 loc) · 1.05 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
SHELL=/bin/bash
SELF = $(MAKE)
include Makefile.helpers
## installs the required python packages
py/install_python_packages:
pip3 install -r requirements.txt --user
## build java source
build_java:
./gradlew build
## get some statistics about the repository
repo_stats:
@echo total commits so far: `git log --oneline | wc -l`
@echo ======
@echo total files in repo:
@git diff --shortstat `git hash-object -t tree /dev/null` | xargs echo
@echo ======
init: py/install_python_packages build_java
define print_error
echo "====Error===="; \
echo "$(1)"; \
echo "============="
endef
## Release related targets
# checks if the state is dirty first, since a changelog cannot be generated if there are uncommitted changes
changelog:
@git diff --quiet || ($(call print_error,"The working directory is not clean. Please commit all your changes then run again"); exit 1)
@echo making changelog
git-chglog -o CHANGELOG.md --next-tag `./semtag final -s minor -o`
git add -A
git commit -m "chore: updating changelog"
git push
release: changelog
./semtag final -s minor