Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kuritka/make-tools
Tools that greatly simplify the use of Makefile
https://github.com/kuritka/make-tools
Last synced: 24 days ago
JSON representation
Tools that greatly simplify the use of Makefile
- Host: GitHub
- URL: https://github.com/kuritka/make-tools
- Owner: kuritka
- Created: 2021-12-01T11:40:46.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-07T15:26:48.000Z (almost 3 years ago)
- Last Synced: 2024-10-11T11:21:51.597Z (about 1 month ago)
- Language: Go
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# make-tools
```Makefile
# Set the shell to bash always
SHELL := /bin/bashinit= @ $(MK) --init
exists= @ $(MK) -m "define environment variable" --env-exists
save= @ $(MK) -d --save
load= @ $(MK) --load
HELM_CHART_PATH := ./mychart/Chart.yaml
appver=`$(MK) --get-helm-appversion=$(HELM_CHART_PATH)`
helmver=`$(MK) --get-helm-version=$(HELM_CHART_PATH)`
killif=@ $(MK) -d --fail-ifexport ENV_SECRET="secret"
my: maketools
$(init)
$(exists) ENV_SECRET
$(save) encoded=`echo "hello from make-tools " | base64`
$(load) encoded
@echo
@echo "encoded message: `$(MK) -l encoded | base64 -d`"
@echo $(helmver)
$(killif) v$(appver)=v1.16.0
@echo v$(appver) $(helmver)# Tooling
MK=$(shell which make-tools)maketools:
go install github.com/kuritka/[email protected]
``````shell
❯ make my
go install github.com/kuritka/[email protected]
4:25PM DBG Debug mode enabled
4:25PM DBG saving data [encoded aGVsbG8gZnJvbSBtYWtlLXRvb2xzIAo ]
aGVsbG8gZnJvbSBtYWtlLXRvb2xzIAo
encoded message: hello from make-tools
0.1.0
4:25PM DBG Debug mode enabled
4:25PM DBG Fail if: v1.16.0=v1.16.0
make: *** [my] Error 1
```