This repository was archived by the owner on Aug 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
96 lines (72 loc) · 2.64 KB
/
Makefile
File metadata and controls
96 lines (72 loc) · 2.64 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
#!/usr/bin/make --no-print-directory --jobs=1 --environment-overrides -f
# Copyright (c) 2023 The Go-Curses Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#: uncomment to echo instead of execute
#CMD=echo
-include .env
#export
.PHONY: install-symlinks install-shortlinks install-caselinks
BIN_NAME := strcaseto
UNTAGGED_VERSION := v0.1.0
UNTAGGED_COMMIT := 0000000000
SHELL := /bin/bash
LOG_LEVEL := debug
GO_ENJIN_PKG := nil
BE_LOCAL_PATH := nil
GOPKG_KEYS ?= CDK CTK CLD CLE CLN CLP
CDK_GO_PACKAGE ?= github.com/go-curses/cdk
CDK_LOCAL_PATH ?= ../cdk
CTK_GO_PACKAGE ?= github.com/go-curses/ctk
CTK_LOCAL_PATH ?= ../ctk
CLD_GO_PACKAGE ?= github.com/go-curses/corelibs/diff
CLD_LOCAL_PATH ?= ../corelibs/diff
CLE_GO_PACKAGE ?= github.com/go-curses/corelibs/errors
CLE_LOCAL_PATH ?= ../corelibs/errors
CLN_GO_PACKAGE ?= github.com/go-curses/corelibs/notify
CLN_LOCAL_PATH ?= ../corelibs/notify
CLP_GO_PACKAGE ?= github.com/go-curses/corelibs/path
CLP_LOCAL_PATH ?= ../corelibs/path
CLEAN_FILES ?= ${BIN_NAME} ${BIN_NAME}.*.* coverage.out pprof.*
DISTCLEAN_FILES ?=
REALCLEAN_FILES ?=
BUILD_VERSION_VAR := main.BuildVersion
BUILD_RELEASE_VAR := main.BuildRelease
SYMLINKS_PREFIX ?= to-
SYMLINKS_SUFFIX ?= -case
SRC_CMD_PATH := ./cmd/strcaseto
define help_custom_targets
@echo " install-symlinks - install to-{strcase}-case symlinks"
@echo " install-shortlinks - install to-{strcase} symlinks"
@echo " install-caselinks - install {strcase} symlinks"
endef
include Golang.cmd.mk
include Golang.def.mk
install-symlinks:
@echo "# installing ${BIN_NAME} symlinks"
@if [ -f "${INSTALL_BIN_PATH}/${BIN_NAME}" ]; then \
pushd "${INSTALL_BIN_PATH}" > /dev/null; \
for name in camel kebab lower-camel screaming-kebab screaming-snake snake; do \
ln -svf "${BIN_NAME}" "${SYMLINKS_PREFIX}$${name}${SYMLINKS_SUFFIX}"; \
done; \
popd > /dev/null; \
else \
echo "error: ${INSTALL_BIN_PATH}/${BIN_NAME} not found" 1>&2; \
false; \
fi
install-shortlinks: SYMLINKS_PREFIX=to-
install-shortlinks: SYMLINKS_SUFFIX=
install-shortlinks: install-symlinks
install-caselinks: SYMLINKS_PREFIX=
install-caselinks: SYMLINKS_SUFFIX=
install-caselinks: install-symlinks