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
|
|
|
|
|
2015-02-18 17:21:52 +00:00
|
|
|
.PHONY: readme
|
|
|
|
readme: README.md
|
|
|
|
|
|
|
|
README.md: src/lib.rs
|
|
|
|
# really, really sorry for this mess.
|
|
|
|
awk '/^# Chrono /{print "[Chrono][doc]",$$3}' $< > $@
|
|
|
|
awk '/^# Chrono /{print "[Chrono][doc]",$$3}' $< | sed 's/./=/g' >> $@
|
|
|
|
echo >> $@
|
|
|
|
echo '[![Chrono on Travis CI][travis-image]][travis]' >> $@
|
|
|
|
echo >> $@
|
|
|
|
echo '[travis-image]: https://travis-ci.org/lifthrasiir/rust-chrono.png' >> $@
|
|
|
|
echo '[travis]: https://travis-ci.org/lifthrasiir/rust-chrono' >> $@
|
2015-07-05 06:26:30 +00:00
|
|
|
awk '/^# Chrono /,/^## /' $< | tail -n +2 | sed '$$d' | sed '$$d' >> $@
|
2015-02-18 17:21:52 +00:00
|
|
|
echo >> $@
|
|
|
|
echo '[Complete Documentation][doc]' >> $@
|
|
|
|
echo >> $@
|
|
|
|
echo '[doc]: https://lifthrasiir.github.io/rust-chrono/' >> $@
|
|
|
|
echo >> $@
|
2015-07-05 06:26:30 +00:00
|
|
|
awk '/^## /,/^\*\/$$/' $< | grep -v '^# ' | sed '$$d' >> $@
|
2015-02-18 17:21:52 +00:00
|
|
|
|