Skip to content

Commit f04f776

Browse files
authored
Tidy up phony targets in Makefile (#83)
1 parent 7f13111 commit f04f776

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ $(PKL_GEN_SWIFT_RELEASE): $(SWIFT_INPUTS)
100100
--configuration release
101101
endif
102102

103+
.PHONY: pkl-package
103104
pkl-package:
104105
$(PKL_EXEC) project package codegen/src/
105106

107+
.PHONY: pkl-gen-swift-release
106108
pkl-gen-swift-release: $(PKL_GEN_SWIFT_RELEASE)
107109

108110
.PHONY: pkl-gen-swift-release-output
@@ -114,19 +116,25 @@ circleci-config:
114116
$(PKL_EXEC) eval .circleci/config.pkl -o .circleci/config.yml
115117
git diff --exit-code
116118

119+
.PHONY: swiftformat
117120
swiftformat:
118121
swift package plugin --allow-writing-to-package-directory swiftformat .
119122

123+
.PHONY: swiftformat-lint
120124
swiftformat-lint:
121125
swift package plugin --allow-writing-to-package-directory swiftformat --lint .
122126

127+
.PHONY: license-format
123128
license-format: .build/tools/hawkeye
124129
.build/tools/hawkeye format
125130

131+
.PHONY: pkl-format
126132
pkl-format:
127133
$(PKL_EXEC) format --grammar-version 1 --write .
128134

135+
.PHONY: pkl-format-lint
129136
pkl-format-lint:
130137
$(PKL_EXEC) format --grammar-version 1 --diff-name-only .
131138

139+
.PHONY: format
132140
format: swiftformat license-format pkl-format

0 commit comments

Comments
 (0)