-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
executable file
·38 lines (30 loc) · 1.04 KB
/
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
35
36
37
38
PREFIX?=/usr/local
build:
swift build --disable-sandbox -c release --static-swift-stdlib
clean_build:
rm -rf .build
make build
portable_zip: build
rm -rf portable_ibgraph
mkdir portable_ibgraph
mkdir portable_ibgraph/bin
cp -f .build/release/ibgraph portable_ibgraph/bin/ibgraph
cp -f LICENSE portable_ibgraph
cd portable_ibgraph
(cd portable_ibgraph; zip -yr - "bin" "LICENSE") > "./portable_ibgraph.zip"
rm -rf portable_ibgraph
install: build
mkdir -p "$(PREFIX)/bin"
cp -f ".build/release/ibgraph" "$(PREFIX)/bin/ibgraph"
current_version:
@cat .version
bump_version:
$(eval NEW_VERSION := $(filter-out $@,$(MAKECMDGOALS)))
@echo $(NEW_VERSION) > .version
@sed 's/__VERSION__/$(NEW_VERSION)/g' script/Version.swift.template > Sources/IBGraphFrontend/Version.swift
git commit -am"Bump version to $(NEW_VERSION)"
publish:
brew update && brew bump-formula-pr --tag=$(shell git describe --tags) --revision=$(shell git rev-parse HEAD) ibgraph
COCOAPODS_VALIDATOR_SKIP_XCODEBUILD=1 pod trunk push IBGraph.podspec
%:
@: