2016-07-31 16:02:32 +00:00
|
|
|
# this Makefile is mostly for the packaging convenience.
|
|
|
|
# casual users should use `cargo` to retrieve the appropriate version of Chrono.
|
|
|
|
|
2019-09-16 00:44:37 +00:00
|
|
|
CHANNEL=stable
|
|
|
|
|
2015-02-04 17:37:54 +00:00
|
|
|
.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
|
|
|
|
|
2018-08-25 19:51:46 +00:00
|
|
|
.PHONY: readme README.md
|
2015-02-18 17:21:52 +00:00
|
|
|
readme: README.md
|
|
|
|
|
|
|
|
README.md: src/lib.rs
|
2018-08-25 19:51:46 +00:00
|
|
|
( ./ci/fix-readme.sh $< ) > $@
|
2015-02-18 17:21:52 +00:00
|
|
|
|
2016-07-31 16:02:32 +00:00
|
|
|
.PHONY: test
|
|
|
|
test:
|
2019-09-16 00:44:37 +00:00
|
|
|
CHANNEL=$(CHANNEL) ./ci/travis.sh
|
2016-07-31 16:02:32 +00:00
|
|
|
|
|
|
|
.PHONY: doc
|
|
|
|
doc: authors readme
|
2017-02-05 20:49:32 +00:00
|
|
|
cargo doc --features 'serde rustc-serialize bincode'
|