-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
41 lines (31 loc) · 1020 Bytes
/
Makefile
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
BASH = $(wildcard bash/*.bash)
ZSH = $(wildcard zsh/_*)
SCRIPTS = $(notdir $(basename $(wildcard specs/*.yaml) ) )
all: bash zsh README.md
$(SCRIPTS):
$(MAKE) bash/$@.bash
$(MAKE) zsh/_$@
zsh: check $(ZSH)
bash: check $(BASH)
zsh/_%: specs/%.yaml
appspec completion $< --zsh > $@
zsh/_GET: specs/lwp-request.yaml
appspec completion $< --name GET --zsh > $@
zsh/_HEAD: specs/lwp-request.yaml
appspec completion $< --name HEAD --zsh > $@
zsh/_POST: specs/lwp-request.yaml
appspec completion $< --name POST --zsh > $@
bash/%.bash: specs/%.yaml
appspec completion $< --bash > $@
bash/GET.bash: specs/lwp-request.yaml
appspec completion $< --name GET --bash > $@
bash/HEAD.bash: specs/lwp-request.yaml
appspec completion $< --name HEAD --bash > $@
bash/POST.bash: specs/lwp-request.yaml
appspec completion $< --name POST --bash > $@
check:
@which appspec >/dev/null || (echo "appspec not installed" && exit 1)
README.md: specs/*.yaml
perl tools/update-readme.pl
lint:
yamllint -c .yamllint.yaml specs/