Skip to content

Commit

Permalink
build: 📝 add Makefile for changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
apovkh committed Oct 18, 2024
1 parent c3e985a commit a31ef9c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,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"

0 comments on commit a31ef9c

Please sign in to comment.