Skip to content

Commit 1ed3abb

Browse files
committed
Avoid the warning from cat
Noticed regenerations were getting: > cat: Sources/SwiftProtobuf/Docs.docc: Is a directory
1 parent c81cf02 commit 1ed3abb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ Tests/SwiftProtobufPluginLibraryTests/DescriptorTestData.swift: build ${PROTOC_G
385385
# public protocol, struct, enum, or class name, as well as every
386386
# method or property defined in a public protocol, struct, or class.
387387
# It also gives us a large collection of Swift names.
388-
Protos/mined_words.txt: Sources/SwiftProtobuf/*
388+
Protos/mined_words.txt: Sources/SwiftProtobuf/*.swift
389389
@echo Building $@
390-
@cat Sources/SwiftProtobuf/* | \
390+
@cat $^ | \
391391
grep -E '\b(public|func|var)\b' | \
392392
grep -vE '\b(private|internal|fileprivate)\b' | \
393393
sed -e 's|//.*$$||g' | \

0 commit comments

Comments
 (0)