summaryrefslogtreecommitdiffstats
path: root/vendor/chrono/Makefile
blob: 63aef15ace95d2cb116faa4e4d4c95dd7dd70bf7 (plain)
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
# this Makefile is mostly for the packaging convenience.
# casual users should use `cargo` to retrieve the appropriate version of Chrono.

CHANNEL=stable

.PHONY: all
all:
	@echo 'Try `cargo build` instead.'

.PHONY: authors
authors:
	echo 'Chrono is mainly written by Kang Seonghoon <public+rust@mearie.org>,' > AUTHORS.txt
	echo 'and also the following people (in ascending order):' >> AUTHORS.txt
	echo >> AUTHORS.txt
	git log --format='%aN <%aE>' | grep -v 'Kang Seonghoon' | sort -u >> AUTHORS.txt

.PHONY: readme README.md
readme: README.md

.PHONY: test
test:
	CHANNEL=$(CHANNEL) ./ci/travis.sh

.PHONY: doc
doc: authors readme
	cargo doc --features 'serde rustc-serialize bincode'