-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
41 lines (31 loc) · 901 Bytes
/
GNUmakefile
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
SHELL := /usr/bin/env fish
all: fmt lint install test
fmt:
@fish_indent --write **.fish
lint:
@for file in **.fish; fish --no-execute $$file; end
install: fisher
@fisher install . >/dev/null
littlecheck.py:
@curl -sL https://raw.githubusercontent.com/ridiculousfish/littlecheck/HEAD/littlecheck/littlecheck.py \
-o littlecheck.py
fisher:
@type -q fisher || begin; curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher; end
clownfish:
@type -q mock || fisher install IlanCosman/clownfish
fishtape:
@type -q fishtape ||fisher install jorgebucaran/fishtape
test: install littlecheck.py
@type -q mock || fisher install IlanCosman/clownfish
@fish tests/test_setup.fish
@_tide_remove_unusable_items
@_tide_cache_variables; python3 littlecheck.py --progress tests/**.test.fish
.PHONY: \
all \
clownfish \
fisher \
fishtape \
fmt \
install \
lint \
test