-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Makefile
44 lines (36 loc) · 1.04 KB
/
Makefile
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
include ./makefile-utils/*.mk
.DEFAULT_GOAL := help
.PHONY: check-links
check-links:
# https://github.com/tcort/markdown-link-check
ag --md -l --ignore-dir tests | xargs -n1 markdown-link-check
.PHONY: check-style
check-style:
editorconfig-checker
.PHONY: test
test:
./test
.PHONY: build
build:
./build -y ./dist/lobash.bash
.PHONY: gen
gen:
./tools/gen
# @target bump-major bump major version (x)
# @target bump-minor bump minor version (y)
# @target bump-patch bump patch version (z)
BUMP_TARGETS := $(addprefix bump-,major minor patch)
.PHONY: $(BUMP_TARGETS)
$(BUMP_TARGETS):
@$(MAKE) $(subst bump-,semver-,$@) > VERSION
.PHONY: changelog
# @desc Generate and update the CHANGELOG file
changelog:
$(MAKE) CHANGELOG NEXT_VERSION=$(shell cat VERSION)
# @target release-major release major version (x)
# @target release-minor release minor version (y)
# @target release-patch release patch version (z)
RELEASE_TARGETS := $(addprefix release-,major minor patch)
.PHONY: $(RELEASE_TARGETS)
$(RELEASE_TARGETS):
./tools/release $(subst release-,,$@)