Skip to content

Commit a42e5ce

Browse files
authored
Fix a few Makefile references to be self consistent. (apple#1892)
1 parent c169a57 commit a42e5ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ install: build
125125
${INSTALL} ${PROTOC_GEN_SWIFT} ${BINDIR}
126126

127127
clean:
128-
swift package clean
128+
${SWIFT} package clean
129129
rm -rf .build _test ${PROTOC_GEN_SWIFT} *DescriptorTestData.bin \
130130
Performance/_generated Performance/_results Protos/mined_words.txt \
131131
docs build
@@ -476,7 +476,7 @@ Protos/Tests/SwiftProtobufTests/generated_swift_names_fields.proto: Protos/mined
476476
@echo 'syntax = "proto3";' >> $@
477477
@echo 'package swift_proto_testing.generated;' >> $@
478478
@echo 'message GeneratedSwiftReservedFields {' >> $@
479-
@cat Protos/mined_words.txt | awk 'BEGIN{n = 1} {print " int32 " $$1 " = " n ";"; n += 1 }' >> $@
479+
@cat Protos/mined_words.txt | ${AWK} 'BEGIN{n = 1} {print " int32 " $$1 " = " n ";"; n += 1 }' >> $@
480480
@echo '}' >> $@
481481

482482
Protos/Tests/SwiftProtobufTests/generated_swift_names_enum_cases.proto: Protos/mined_words.txt
@@ -489,7 +489,7 @@ Protos/Tests/SwiftProtobufTests/generated_swift_names_enum_cases.proto: Protos/m
489489
@echo 'package swift_proto_testing.generated;' >> $@
490490
@echo 'enum GeneratedSwiftReservedEnum {' >> $@
491491
@echo ' NONE = 0;' >> $@
492-
@cat Protos/mined_words.txt | awk 'BEGIN{n = 1} {print " " $$1 " = " n ";"; n += 1 }' >> $@
492+
@cat Protos/mined_words.txt | ${AWK} 'BEGIN{n = 1} {print " " $$1 " = " n ";"; n += 1 }' >> $@
493493
@echo '}' >> $@
494494

495495
Protos/Tests/SwiftProtobufTests/generated_swift_names_messages.proto: Protos/mined_words.txt
@@ -501,7 +501,7 @@ Protos/Tests/SwiftProtobufTests/generated_swift_names_messages.proto: Protos/min
501501
@echo 'syntax = "proto3";' >> $@
502502
@echo 'package swift_proto_testing.generated;' >> $@
503503
@echo 'message GeneratedSwiftReservedMessages {' >> $@
504-
@cat Protos/mined_words.txt | awk '{print " message " $$1 " { int32 " $$1 " = 1; }"}' >> $@
504+
@cat Protos/mined_words.txt | ${AWK} '{print " message " $$1 " { int32 " $$1 " = 1; }"}' >> $@
505505
@echo '}' >> $@
506506

507507
Protos/Tests/SwiftProtobufTests/generated_swift_names_enums.proto: Protos/mined_words.txt
@@ -513,7 +513,7 @@ Protos/Tests/SwiftProtobufTests/generated_swift_names_enums.proto: Protos/mined_
513513
@echo 'syntax = "proto3";' >> $@
514514
@echo 'package swift_proto_testing.generated;' >> $@
515515
@echo 'message GeneratedSwiftReservedEnums {' >> $@
516-
@cat Protos/mined_words.txt | awk '{print " enum " $$1 " { NONE_" $$1 " = 0; }"}' >> $@
516+
@cat Protos/mined_words.txt | ${AWK} '{print " enum " $$1 " { NONE_" $$1 " = 0; }"}' >> $@
517517
@echo '}' >> $@
518518

519519
# Rebuild just the protos used by the conformance test runner.

0 commit comments

Comments
 (0)