mirror of
https://github.com/daylinmorgan/task.mk.git
synced 2024-12-21 17:40:45 -06:00
build: generalize task.mk as target
This commit is contained in:
parent
41c398065c
commit
ec1430bc04
2 changed files with 7 additions and 6 deletions
11
Makefile
11
Makefile
|
@ -10,6 +10,7 @@ bootstrap:
|
||||||
$(call msg,Bootstrap Environment)
|
$(call msg,Bootstrap Environment)
|
||||||
@mamba create -p ./env python jinja2 black -y
|
@mamba create -p ./env python jinja2 black -y
|
||||||
@mamba run -p ./env pip install yartsu
|
@mamba run -p ./env pip install yartsu
|
||||||
|
@git config core.hooksPath .githooks
|
||||||
|
|
||||||
## lint | lint the python
|
## lint | lint the python
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
|
@ -36,10 +37,11 @@ list-%:
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
release: version-check
|
release: version-check
|
||||||
$(call msg,Release Project)
|
$(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
|
@sed -i 's/task.mk\/.*\/task.mk/task.mk\/v$(VERSION)\/task.mk/g' README.md
|
||||||
@git add task.mk 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)
|
@git tag v$(VERSION)
|
||||||
|
|
||||||
## c, clean | remove the generated files
|
## c, clean | remove the generated files
|
||||||
|
@ -86,9 +88,8 @@ info:
|
||||||
$(call tprint,$(mlmsg))
|
$(call tprint,$(mlmsg))
|
||||||
$(call tprint,{a.custom(fg=(148, 255, 15),bg=(103, 2, 15))}Custom Colors TOO!{a.end})
|
$(call tprint,{a.custom(fg=(148, 255, 15),bg=(103, 2, 15))}Custom Colors TOO!{a.end})
|
||||||
|
|
||||||
.PHONY: task.mk
|
task.mk: $(TEMPLATES) generate.py
|
||||||
task.mk:
|
./generate.py $(VERSION) > task.mk
|
||||||
./generate.py $(shell git describe --always | sed s'/dirty/dev/') > task.mk
|
|
||||||
|
|
||||||
define USAGE
|
define USAGE
|
||||||
{a.$(HEADER_COLOR)}usage:{a.end}
|
{a.$(HEADER_COLOR)}usage:{a.end}
|
||||||
|
|
2
task.mk
2
task.mk
|
@ -1,7 +1,7 @@
|
||||||
# }> [github.com/daylinmorgan/task.mk] <{ #
|
# }> [github.com/daylinmorgan/task.mk] <{ #
|
||||||
# Copyright (c) 2022 Daylin Morgan
|
# Copyright (c) 2022 Daylin Morgan
|
||||||
# MIT License
|
# MIT License
|
||||||
# version: c036a27
|
# version: v22.9.7-1-g41c3980-dev
|
||||||
#
|
#
|
||||||
# task.mk should be included at the bottom of your Makefile.
|
# 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.
|
# See below for the standard configuration options that should be set prior to including this file.
|
||||||
|
|
Loading…
Reference in a new issue