build: generalize task.mk as target

This commit is contained in:
Daylin Morgan 2022-09-07 15:48:46 -05:00
parent 41c398065c
commit ec1430bc04
2 changed files with 7 additions and 6 deletions

View File

@ -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}

View File

@ -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.