-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
343 lines (309 loc) · 20.4 KB
/
Makefile
File metadata and controls
343 lines (309 loc) · 20.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
# ==============================================================================
# Makefile — cpp-gen
# ==============================================================================
# Available targets:
# make → build (default)
# make build → compiles the binary
# make install → installs to ~/.local/bin (no sudo required)
# make install-global → installs to /usr/local/bin (requires sudo)
# make uninstall → removes the installed binary
# make clean → removes local build artifacts
# make release → calculates next version and creates tag via Conventional Commits
# make snapshot → local multi-platform build with goreleaser (without publishing)
# make changelog → generates/updates CHANGELOG.md via git-cliff
# make aur-update → updates aur/PKGBUILD version and regenerates .SRCINFO
# make aur-publish → publishes cpp-gen-bin to the AUR (requires SSH key)
# make help → displays this message
# ==============================================================================
# ── Metadata ──────────────────────────────────────────────────────────────────
BINARY := cpp-gen
VERSION := $(shell grep 'AppVersion' cmd/root.go 2>/dev/null | head -1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' || echo "0.1.0")
BUILD_DATE := $(shell date -u '+%Y-%m-%dT%H:%M:%SZ')
GIT_COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null || echo "unknown")
# ── Directories ───────────────────────────────────────────────────────────────
# Default installation directory (no sudo, supported by most shells)
INSTALL_DIR := $(HOME)/.local/bin
# Global installation directory (requires sudo)
INSTALL_DIR_GLOBAL := /usr/local/bin
# Local build output directory
BUILD_DIR := ./dist
# ── Go compilation flags ──────────────────────────────────────────────────────
# Injects version, commit and date into the binary via ldflags for --version display
LDFLAGS := -s -w \
-X 'github.com/matpdev/cpp-gen/cmd.AppVersion=$(VERSION)' \
-X 'github.com/matpdev/cpp-gen/cmd.BuildDate=$(BUILD_DATE)' \
-X 'github.com/matpdev/cpp-gen/cmd.GitCommit=$(GIT_COMMIT)'
GO := go
GOFLAGS := -trimpath
# ── Output colors ─────────────────────────────────────────────────────────────
RESET := \033[0m
BOLD := \033[1m
GREEN := \033[32m
CYAN := \033[36m
YELLOW := \033[33m
PURPLE := \033[35m
RED := \033[31m
GRAY := \033[90m
# ==============================================================================
# Targets
# ==============================================================================
.DEFAULT_GOAL := build
.PHONY: build install install-global uninstall clean release snapshot changelog aur-update aur-publish help
# ── build ─────────────────────────────────────────────────────────────────────
## Compiles the binary to ./dist/cpp-gen
build:
@printf "$(BOLD)$(CYAN) Building$(RESET) $(BINARY) v$(VERSION) ($(GIT_COMMIT))\n"
@mkdir -p $(BUILD_DIR)
@$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BUILD_DIR)/$(BINARY) .
@printf "$(BOLD)$(GREEN) ✓ Built$(RESET) $(BUILD_DIR)/$(BINARY)\n"
# ── install ───────────────────────────────────────────────────────────────────
## Installs the binary to ~/.local/bin (no sudo required)
install: build
@mkdir -p $(INSTALL_DIR)
@ACTION=instalado; \
if [ -f "$(INSTALL_DIR)/$(BINARY)" ]; then \
ACTION=atualizado; \
OLD_VER=$$($(INSTALL_DIR)/$(BINARY) version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1); \
if [ -z "$$OLD_VER" ]; then OLD_VER="?"; fi; \
printf "\n$(BOLD)$(CYAN) Updating$(RESET) $(BINARY) $(GRAY)v$$OLD_VER$(RESET) → $(BOLD)v$(VERSION)$(RESET) em $(INSTALL_DIR)/$(BINARY)\n"; \
else \
printf "\n$(BOLD)$(CYAN) Installing$(RESET) $(BINARY) v$(VERSION) → $(INSTALL_DIR)/$(BINARY)\n"; \
fi; \
cp $(BUILD_DIR)/$(BINARY) $(INSTALL_DIR)/$(BINARY); \
chmod +x $(INSTALL_DIR)/$(BINARY); \
if [ "$$ACTION" = "atualizado" ]; then \
printf "$(BOLD)$(GREEN) ✓ Updated$(RESET) $(INSTALL_DIR)/$(BINARY)\n"; \
else \
printf "$(BOLD)$(GREEN) ✓ Installed$(RESET) $(INSTALL_DIR)/$(BINARY)\n"; \
fi; \
$(MAKE) --no-print-directory _post_install_log INSTALL_LOCATION=$(INSTALL_DIR) INSTALL_ACTION=$$ACTION
# ── install-global ────────────────────────────────────────────────────────────
## Installs the binary to /usr/local/bin (requires sudo)
install-global: build
@ACTION=instalado; \
if [ -f "$(INSTALL_DIR_GLOBAL)/$(BINARY)" ]; then \
ACTION=atualizado; \
OLD_VER=$$($(INSTALL_DIR_GLOBAL)/$(BINARY) version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1); \
if [ -z "$$OLD_VER" ]; then OLD_VER="?"; fi; \
printf "\n$(BOLD)$(CYAN) Updating$(RESET) $(BINARY) $(GRAY)v$$OLD_VER$(RESET) → $(BOLD)v$(VERSION)$(RESET) em $(INSTALL_DIR_GLOBAL)/$(BINARY) $(GRAY)(requer sudo)$(RESET)\n"; \
else \
printf "\n$(BOLD)$(CYAN) Installing$(RESET) $(BINARY) v$(VERSION) → $(INSTALL_DIR_GLOBAL)/$(BINARY) $(GRAY)(requer sudo)$(RESET)\n"; \
fi; \
sudo cp $(BUILD_DIR)/$(BINARY) $(INSTALL_DIR_GLOBAL)/$(BINARY); \
sudo chmod +x $(INSTALL_DIR_GLOBAL)/$(BINARY); \
if [ "$$ACTION" = "atualizado" ]; then \
printf "$(BOLD)$(GREEN) ✓ Updated$(RESET) $(INSTALL_DIR_GLOBAL)/$(BINARY)\n"; \
else \
printf "$(BOLD)$(GREEN) ✓ Installed$(RESET) $(INSTALL_DIR_GLOBAL)/$(BINARY)\n"; \
fi; \
$(MAKE) --no-print-directory _post_install_log INSTALL_LOCATION=$(INSTALL_DIR_GLOBAL) INSTALL_ACTION=$$ACTION
# ── uninstall ─────────────────────────────────────────────────────────────────
## Removes the binary from ~/.local/bin and /usr/local/bin (if they exist)
uninstall:
@printf "$(BOLD)$(CYAN) Uninstalling$(RESET) $(BINARY)...\n"
@removed=0; \
if [ -f "$(INSTALL_DIR)/$(BINARY)" ]; then \
rm -f "$(INSTALL_DIR)/$(BINARY)"; \
printf "$(BOLD)$(GREEN) ✓ Removed$(RESET) $(INSTALL_DIR)/$(BINARY)\n"; \
removed=1; \
fi; \
if [ -f "$(INSTALL_DIR_GLOBAL)/$(BINARY)" ]; then \
sudo rm -f "$(INSTALL_DIR_GLOBAL)/$(BINARY)"; \
printf "$(BOLD)$(GREEN) ✓ Removed$(RESET) $(INSTALL_DIR_GLOBAL)/$(BINARY)\n"; \
removed=1; \
fi; \
if [ $$removed -eq 0 ]; then \
printf "$(YELLOW) ⚠ Nenhuma instalação encontrada.$(RESET)\n"; \
fi
# ── release ───────────────────────────────────────────────────────────────────
## Calculates the next version via Conventional Commits and creates the git tag
release:
@chmod +x scripts/release.sh
@./scripts/release.sh
# ── release (dry-run) ─────────────────────────────────────────────────────────
## Displays the calculated next version without creating any tag
release-dry:
@chmod +x scripts/release.sh
@./scripts/release.sh --dry-run
# ── snapshot ──────────────────────────────────────────────────────────────────
## Local multi-platform build with goreleaser (without publishing to GitHub)
snapshot:
@printf "$(BOLD)$(CYAN) Snapshot$(RESET) goreleaser build local...\n"
@command -v goreleaser >/dev/null 2>&1 || { \
printf "$(RED) ✗ goreleaser não encontrado.$(RESET)\n"; \
printf " Instale com: $(CYAN)go install github.com/goreleaser/goreleaser/v2@latest$(RESET)\n"; \
exit 1; \
}
@goreleaser release --snapshot --clean
@printf "$(BOLD)$(GREEN) ✓ Snapshot$(RESET) Binários em ./dist/\n"
# ── changelog ────────────────────────────────────────────────────────────────
## Generates or updates CHANGELOG.md from commits (requires git-cliff)
changelog:
@printf "$(BOLD)$(CYAN) Changelog$(RESET) gerando CHANGELOG.md...\n"
@command -v git-cliff >/dev/null 2>&1 || { \
printf "$(RED) ✗ git-cliff não encontrado.$(RESET)\n"; \
printf " Instale com: $(CYAN)cargo install git-cliff$(RESET)\n"; \
printf " Ou via: $(CYAN)brew install git-cliff$(RESET)\n"; \
exit 1; \
}
@git-cliff --output CHANGELOG.md
@printf "$(BOLD)$(GREEN) ✓ Gerado$(RESET) CHANGELOG.md\n"
# ── clean ─────────────────────────────────────────────────────────────────────
## Removes the ./dist directory with build artifacts
clean:
@printf "$(BOLD)$(CYAN) Cleaning$(RESET) $(BUILD_DIR)/\n"
@rm -rf $(BUILD_DIR)
@printf "$(BOLD)$(GREEN) ✓ Done$(RESET)\n"
# ── aur-update ────────────────────────────────────────────────────────────────
## Updates aur/PKGBUILD pkgver and regenerates aur/.SRCINFO
aur-update:
@printf "$(BOLD)$(CYAN) AUR$(RESET) atualizando aur/PKGBUILD para v$(VERSION)...\n"
@if [ ! -f aur/PKGBUILD ]; then \
printf "$(RED) ✗ aur/PKGBUILD não encontrado.$(RESET)\n"; exit 1; \
fi
@sed -i "s/^pkgver=.*/pkgver=$(VERSION)/" aur/PKGBUILD
@sed -i "s/^pkgrel=.*/pkgrel=1/" aur/PKGBUILD
@printf "$(BOLD)$(GREEN) ✓ PKGBUILD$(RESET) pkgver=$(VERSION) pkgrel=1\n"
@if command -v makepkg >/dev/null 2>&1; then \
cd aur && makepkg --printsrcinfo > .SRCINFO; \
printf "$(BOLD)$(GREEN) ✓ .SRCINFO$(RESET) gerado com makepkg --printsrcinfo\n"; \
else \
sed -i "s/pkgver = .*/pkgver = $(VERSION)/" aur/.SRCINFO; \
sed -i "s/pkgrel = .*/pkgrel = 1/" aur/.SRCINFO; \
sed -i "s|v[0-9]\+\.[0-9]\+\.[0-9]\+/|v$(VERSION)/|g" aur/.SRCINFO; \
sed -i "s/-[0-9]\+\.[0-9]\+\.[0-9]\+-/-$(VERSION)-/g" aur/.SRCINFO; \
printf "$(BOLD)$(YELLOW) ~ .SRCINFO$(RESET) atualizado via sed (makepkg não disponível)\n"; \
printf " $(GRAY) Instale makepkg (pacman) para garantir .SRCINFO correto.$(RESET)\n"; \
fi
@printf "\n"
@printf "$(BOLD) Próximos passos para publicar no AUR:$(RESET)\n\n"
@printf " $(CYAN)1.$(RESET) Atualize os checksums reais:\n"
@printf " $(YELLOW)cd aur && updpkgsums$(RESET)\n\n"
@printf " $(CYAN)2.$(RESET) Regenere o .SRCINFO após updpkgsums:\n"
@printf " $(YELLOW)makepkg --printsrcinfo > .SRCINFO$(RESET)\n\n"
@printf " $(CYAN)3.$(RESET) Valide o pacote localmente:\n"
@printf " $(YELLOW)makepkg -si$(RESET)\n\n"
@printf " $(CYAN)4.$(RESET) Force-add os arquivos (respeitando o .gitignore do AUR)\n"
@printf " e faça push para o branch $(BOLD)master$(RESET) $(GRAY)(único branch aceito pelo AUR)$(RESET):\n"
@printf " $(YELLOW)git -C aur add -f PKGBUILD .SRCINFO LICENSE$(RESET)\n"
@printf " $(YELLOW)git -C aur commit -m 'Update to v$(VERSION)'$(RESET)\n"
@printf " $(YELLOW)git -C aur push origin master$(RESET)\n\n"
@printf " $(GRAY)Publicação automática via CI: o goreleaser cuida dos passos acima\n"
@printf " usando o secret AUR_KEY a cada nova tag de release.$(RESET)\n\n"
# ── aur-publish ───────────────────────────────────────────────────────────────
## Publishes cpp-gen-bin to the AUR using scripts/aur-publish.sh
aur-publish:
@printf "$(BOLD)$(CYAN) AUR$(RESET) publicando v$(VERSION) no AUR...\n"
@if [ ! -f scripts/aur-publish.sh ]; then \
printf "$(RED) ✗ scripts/aur-publish.sh não encontrado.$(RESET)\n"; exit 1; \
fi
@bash scripts/aur-publish.sh --version $(VERSION)
## Publishes to AUR without confirmation prompt
aur-publish-yes:
@bash scripts/aur-publish.sh --version $(VERSION) --yes
# ── help ──────────────────────────────────────────────────────────────────────
## Displays all available targets
help:
@printf "\n$(BOLD)$(PURPLE)⚡ cpp-gen$(RESET) — Makefile\n\n"
@printf "$(BOLD)Uso:$(RESET) make $(CYAN)<target>$(RESET)\n\n"
@printf "$(BOLD)Targets:$(RESET)\n"
@awk '/^## / { desc=substr($$0, 4) } \
/^[a-zA-Z][a-zA-Z_-]*:/ && desc != "" { \
target=$$1; sub(/:.*/, "", target); \
printf " \033[36m%-20s\033[0m %s\n", target, desc; \
desc="" \
}' \
$(MAKEFILE_LIST)
@printf "\n$(BOLD)Variáveis:$(RESET)\n"
@printf " $(CYAN)%-20s$(RESET) %s\n" "INSTALL_DIR" "$(INSTALL_DIR)"
@printf " $(CYAN)%-20s$(RESET) %s\n" "INSTALL_DIR_GLOBAL" "$(INSTALL_DIR_GLOBAL)"
@printf " $(CYAN)%-20s$(RESET) %s\n" "VERSION" "$(VERSION)"
@printf " $(CYAN)%-20s$(RESET) %s\n" "GIT_COMMIT" "$(GIT_COMMIT)"
@printf "\n$(BOLD)Exemplos:$(RESET)\n"
@printf " make install $(GRAY)# instala em ~/.local/bin$(RESET)\n"
@printf " make install-global $(GRAY)# instala em /usr/local/bin$(RESET)\n"
@printf " make INSTALL_DIR=~/bin install $(GRAY)# diretório customizado$(RESET)\n"
@printf " make release $(GRAY)# cria a próxima tag de release$(RESET)\n"
@printf " make release-dry $(GRAY)# simula a próxima versão (dry-run)$(RESET)\n"
@printf " make snapshot $(GRAY)# build local multi-plataforma$(RESET)\n"
@printf " make changelog $(GRAY)# atualiza CHANGELOG.md$(RESET)\n\n"
# ==============================================================================
# Internal target — Post-install log with PATH instructions
# ==============================================================================
INSTALL_LOCATION ?= $(INSTALL_DIR)
INSTALL_ACTION ?= instalado
.PHONY: _post_install_log
_post_install_log:
@printf "\n"
@printf "$(BOLD)$(PURPLE)╔══════════════════════════════════════════════════════════════╗$(RESET)\n"
@printf "$(BOLD)$(PURPLE)║$(RESET) $(BOLD)⚡ cpp-gen v$(VERSION) $(INSTALL_ACTION) com sucesso!$(RESET) $(BOLD)$(PURPLE)║$(RESET)\n"
@printf "$(BOLD)$(PURPLE)╚══════════════════════════════════════════════════════════════╝$(RESET)\n"
@printf "\n"
# Checks if the installation directory is already in PATH
@if echo "$$PATH" | tr ':' '\n' | grep -qx "$(INSTALL_LOCATION)"; then \
printf "$(BOLD)$(GREEN) ✓ $(INSTALL_LOCATION)$(RESET) já está no seu PATH. Tudo pronto!\n\n"; \
printf " Execute: $(BOLD)$(CYAN)$(BINARY) --help$(RESET)\n\n"; \
else \
printf "$(BOLD)$(YELLOW) ⚠ Ação necessária:$(RESET) adicione $(BOLD)$(INSTALL_LOCATION)$(RESET) ao seu PATH.\n"; \
printf " Siga as instruções abaixo para o seu shell:\n\n"; \
$(MAKE) --no-print-directory _log_bash_zsh INSTALL_LOCATION=$(INSTALL_LOCATION); \
$(MAKE) --no-print-directory _log_fish INSTALL_LOCATION=$(INSTALL_LOCATION); \
$(MAKE) --no-print-directory _log_next_steps; \
fi
# ── bash / zsh instructions ───────────────────────────────────────────────────
.PHONY: _log_bash_zsh
_log_bash_zsh:
@printf "$(BOLD)$(CYAN) ┌─ Bash / Zsh $(GRAY)─────────────────────────────────────────────$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) Adicione ao final do $(BOLD)~/.bashrc$(RESET) $(GRAY)(bash)$(RESET) ou $(BOLD)~/.zshrc$(RESET) $(GRAY)(zsh)$(RESET):\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(GRAY)# cpp-gen$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(GREEN)export PATH=\"$(INSTALL_LOCATION):\$$PATH\"$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) Ou execute o comando abaixo para adicionar automaticamente:\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(GRAY)# bash:$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(YELLOW)echo 'export PATH=\"$(INSTALL_LOCATION):\$$PATH\"' >> ~/.bashrc$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(YELLOW)source ~/.bashrc$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(GRAY)# zsh:$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(YELLOW)echo 'export PATH=\"$(INSTALL_LOCATION):\$$PATH\"' >> ~/.zshrc$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(YELLOW)source ~/.zshrc$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) └─────────────────────────────────────────────────────────────$(RESET)\n"
@printf "\n"
# ── fish instructions ─────────────────────────────────────────────────────────
.PHONY: _log_fish
_log_fish:
@printf "$(BOLD)$(CYAN) ┌─ Fish Shell $(GRAY)────────────────────────────────────────────$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(BOLD)Opção 1$(RESET) — Comando único $(GRAY)(persistente, recomendado)$(RESET):\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(YELLOW)fish_add_path $(INSTALL_LOCATION)$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(BOLD)Opção 2$(RESET) — Adicione ao $(BOLD)~/.config/fish/config.fish$(RESET):\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(GRAY)# cpp-gen$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(GREEN)fish_add_path $(INSTALL_LOCATION)$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) Ou com set -x para compatibilidade:\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(GREEN)set -x PATH $(INSTALL_LOCATION) \$$PATH$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) Ou execute o comando abaixo para adicionar automaticamente:\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET) $(YELLOW)echo 'fish_add_path $(INSTALL_LOCATION)' >> ~/.config/fish/config.fish$(RESET)\n"
@printf "$(BOLD)$(CYAN) │$(RESET)\n"
@printf "$(BOLD)$(CYAN) └─────────────────────────────────────────────────────────────$(RESET)\n"
@printf "\n"
# ── Next steps ────────────────────────────────────────────────────────────────
.PHONY: _log_next_steps
_log_next_steps:
@printf "$(BOLD) Após configurar o PATH, recarregue o shell e execute:$(RESET)\n"
@printf "\n"
@printf " $(BOLD)$(CYAN)$(BINARY) --help$(RESET) $(GRAY)# exibe a ajuda$(RESET)\n"
@printf " $(BOLD)$(CYAN)$(BINARY) new meu-projeto$(RESET) $(GRAY)# cria um projeto interativamente$(RESET)\n"
@printf " $(BOLD)$(CYAN)$(BINARY) version$(RESET) $(GRAY)# confirma a versão instalada$(RESET)\n"
@printf "\n"
@printf " $(GRAY)Para desinstalar: $(RESET)$(YELLOW)make uninstall$(RESET)\n"
@printf "\n"