-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (28 loc) · 1.09 KB
/
Makefile
File metadata and controls
42 lines (28 loc) · 1.09 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
# Requires circleci CLI installation
.SECONDARY:
.SECONDEXPANSION:
ORB_VER ?= 1.0.3
.phony: help publish publish-dev validate
publish: validate-orb ##@Build publish
circleci orb publish orb.yml alcideio/alcide-advisor@$(ORB_VER)
publish-dev: validate-orb ##@Build publish-dev
circleci orb publish orb.yml alcideio/alcide-advisor@dev:$(ORB_VER)
validate-config: ##@Build Validate
circleci config validate .circleci/config.yml
validate-orb: ##@Build Validate
circleci orb validate orb.yml
validate-all: validate-config validate-orb
HELP_FUN = \
%help; \
while(<>) { push @{$$help{$$2 // 'options'}}, [$$1, $$3] if /^(.+)\s*:.*\#\#(?:@(\w+))?\s(.*)$$/ }; \
print "Usage: make [options] [target] ...\n\n"; \
for (sort keys %help) { \
print "$$_:\n"; \
for (sort { $$a->[0] cmp $$b->[0] } @{$$help{$$_}}) { \
$$sep = " " x (30 - length $$_->[0]); \
print " $$_->[0]$$sep$$_->[1]\n" ; \
} print "\n"; }
help: ##@Misc Show this help
@perl -e '$(HELP_FUN)' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
USERID=$(shell id -u)