diff --git a/Makefile b/Makefile index 59e7fdc..7ab57d9 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ bootstrap: $(call msg,Bootstrap Environment) @mamba create -p ./env python jinja2 black -y @mamba run -p ./env pip install yartsu + @git config core.hooksPath .githooks ## lint | lint the python .PHONY: lint @@ -36,10 +37,11 @@ list-%: .PHONY: release release: version-check $(call msg,Release Project) - @./generate.py $(VERSION) > task.mk + # @./generate.py $(VERSION) > task.mk + @./make task.mk @sed -i 's/task.mk\/.*\/task.mk/task.mk\/v$(VERSION)\/task.mk/g' README.md @git add task.mk README.md - @git commit -m "release: v$(VERSION)" + @git commit -m "release: v$(VERSION)" --no-verify @git tag v$(VERSION) ## c, clean | remove the generated files @@ -86,9 +88,8 @@ info: $(call tprint,$(mlmsg)) $(call tprint,{a.custom(fg=(148, 255, 15),bg=(103, 2, 15))}Custom Colors TOO!{a.end}) -.PHONY: task.mk -task.mk: - ./generate.py $(shell git describe --always | sed s'/dirty/dev/') > task.mk +task.mk: $(TEMPLATES) generate.py + ./generate.py $(VERSION) > task.mk define USAGE {a.$(HEADER_COLOR)}usage:{a.end} diff --git a/task.mk b/task.mk index e84e07e..bad3f5c 100644 --- a/task.mk +++ b/task.mk @@ -1,7 +1,7 @@ # }> [github.com/daylinmorgan/task.mk] <{ # # Copyright (c) 2022 Daylin Morgan # MIT License -# version: c036a27 +# version: v22.9.7-1-g41c3980-dev # # task.mk should be included at the bottom of your Makefile. # See below for the standard configuration options that should be set prior to including this file.