-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
43 lines (32 loc) · 900 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
42
43
CRAFTS = $(shell find data -iname '*.craft' | sed 's/ /\\ /g')
FLEETS = $(shell find data -iname '*.fleet' | sed 's/ /\\ /g')
MISSILES = $(shell find data -iname '*.missile' | sed 's/ /\\ /g')
SHIPS = $(shell find data -iname '*.ship' | sed 's/ /\\ /g')
SOURCES = $(shell find data -iname '*.fleet' -o -iname '*.missile' -o -iname '*.ship' -o -iname '*.craft' | sed 's/ /\\ /g')
.PHONY: $(SOURCES)
.PHONY: all clean check format cache steam wiki
.PHONY: crafts fleets missiles missiles
all: $(SOURCES)
clean:
rm -f *.png
rm -f *.log
rm -f *.log.*
check:
poetry run ruff check nfcli/
format:
poetry run ruff format nfcli/
poetry run ruff check --fix nfcli/
cache: steam wiki
steam:
poetry run steam
update:
poetry update
pre-commit autoupdate
wiki:
poetry run wiki
crafts: $(CRAFTS)
fleets: $(FLEETS)
missiles: $(MISSILES)
ships: $(SHIPS)
$(SOURCES):
poetry run nfcli -i "$@" -w