mirror of
https://github.com/chronotope/chrono.git
synced 2025-09-28 21:42:01 +00:00

Slightly easier to reason about the code via some code movement, printing some banners to make it more obvious when cargo is being run since it is run so many times.
30 lines
744 B
Makefile
30 lines
744 B
Makefile
# 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
|
|
|
|
README.md: src/lib.rs
|
|
( ./ci/fix-readme.sh $< ) > $@
|
|
|
|
.PHONY: test
|
|
test:
|
|
CHANNEL=$(CHANNEL) ./ci/travis.sh
|
|
|
|
.PHONY: doc
|
|
doc: authors readme
|
|
cargo doc --features 'serde rustc-serialize bincode'
|