-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (26 loc) · 768 Bytes
/
Makefile
File metadata and controls
32 lines (26 loc) · 768 Bytes
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
.PHONY: default install uninstall chl chl-first
default:
@echo 'Git extras installation helper from JustCoded'
install:
sudo cp -f ./bin/* /usr/local/bin/
sudo chmod +x /usr/local/bin/git-*
uninstall:
sudo rm /usr/local/bin/git-*
##
# CHANGELOG vars and targets
##
CONV_CHL_IMAGE := justcoded/php-conventional-changelog:latest
CONV_CHL_DR := docker run -it --rm --volume "$$PWD":/codebase ${CONV_CHL_IMAGE} bash
CONV_CHL_CMD := conventional-changelog --config changelog-config.php
##
# @command chl Generate changelog based on conventional commits
##
chl:
${CONV_CHL_DR} \
-c "${CONV_CHL_CMD}"
##
# @command chl-first Generate changelog based on conventional commits, first version
##
chl-first:
${CONV_CHL_DR} \
-c "${CONV_CHL_CMD} --first-release"