forked from square/Cleanse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (22 loc) · 851 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
28
29
30
31
32
33
34
.DUMMY: build documentation
SWIFT_ROOT=/Library/Developer/Toolchains/swift-latest.xctoolchain
SWIFT=$(SWIFT_ROOT)/usr/bin/swift
# This can go away once
SWIFT_ARGS=-Xswiftc=-suppress-warnings
.build:
build: .build generated_sources
$(SWIFT) build $(SWIFT_ARGS)
test: build
$(SWIFT) test
clean:
$(SWIFT) build --clean
generated_sources: Cleanse/BinderArities.swift Cleanse/PropertyInjectionArities.swift
Cleanse/BinderArities.swift: CleanseGen/GenerateBinderArities.swift
xcrun swift CleanseGen/GenerateBinderArities.swift > Cleanse/BinderArities.swift
Cleanse/PropertyInjectionArities.swift: CleanseGen/GeneratePropertyInjectionArities.swift
xcrun swift CleanseGen/GeneratePropertyInjectionArities.swift > Cleanse/PropertyInjectionArities.swift
docs/index.html: build
jazzy
docs: docs/index.html
sphinx:
make -C Documentation html