-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (22 loc) · 893 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
COMMIT := d1e519f04207860d1e9ebfd600f9818e6ef39def
LICENSE_URL := https://github.com/apple/swift-package-manager/raw/$(COMMIT)/LICENSE.txt
SOURCE_URL := https://github.com/apple/swift-package-manager/raw/$(COMMIT)/TSC/Sources/TSCBasic/OrderedSet.swift
TEST_URL := https://github.com/apple/swift-package-manager/raw/$(COMMIT)/TSC/Tests/TSCBasicTests/OrderedSetTests.swift
SOURCES := \
LICENSE.txt \
Sources/OrderedSet/OrderedSet.swift \
Tests/OrderedSetTests/OrderedSetTests.swift
all: $(SOURCES)
clean:
rm $(SOURCES)
LICENSE.txt:
@echo $@
@curl -Lo $@ $(LICENSE_URL)
Sources/OrderedSet/OrderedSet.swift:
@echo $@
@echo "// From $(SOURCE_URL)" > $@
@curl -L $(SOURCE_URL) | sed 's/private/internal/g' >> $@
Tests/OrderedSetTests/OrderedSetTests.swift:
@echo $@
@echo "// From $(TEST_URL)" > $@
@curl -L $(TEST_URL) | sed 's/TSCBasic/OrderedSet/g' | sed '/^typealias/ d' >> $@