-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (43 loc) · 1.15 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# ---- Command ---- #
.PHONY : gen clean fclean re test
gen:
tuist install
tuist generate
clean:
rm -rf Tuist/Package.resolved
rm -rf ~/.tuist/Cache
rm -rf ~/Library/Caches/tuist
tuist clean
fclean: clean
rm -rf **/**/**/*.xcodeproj
rm -rf **/**/*.xcodeproj
rm -rf **/*.xcodeproj
rm -rf *.xcodeproj
rm -rf *.xcworkspace
find . -name "DerivedData" -exec rm -rf {} +
find . -name "Derived" -exec rm -rf {} +
re: fclean gen
# ---- graph ---- #
graph:
tuist graph --skip-external-dependencies
# ---- test ---- #
test:
tuist test
# ---- Code Signing ---- #
signing:
swift Scripts/CodeSigning.swift
# ---- Create Module ---- #
module:
swift Scripts/GenerateModule.swift
# ---- Templates ---- #
TUIST_VERSION = $(shell tuist version)
TUIST_DIR = $(shell which tuist)
TEMPLATES_DIR = $(HOME)/.local/share/mise/installs/tuist/$(TUIST_VERSION)/bin/Templates
templates: copy_templates list_templates
copy_templates:
@echo "Copying folders to Tuist Templates directory..."
@cp -fR ./Templates/* $(TEMPLATES_DIR)/
@echo "Folders copied to $(TEMPLATES_DIR)"
list_templates:
@echo "Listing contents of Tuist Templates directory..."
ls $(TEMPLATES_DIR)