d2cd3b1b26
Tests will be run using `bats`.
24 lines
401 B
Makefile
24 lines
401 B
Makefile
all: yadm.md contrib
|
|
|
|
yadm.md: yadm.1
|
|
@groff -man -Tascii ./yadm.1 | col -bx | sed 's/^[A-Z]/## &/g' | sed '/yadm(1)/d' > yadm.md
|
|
|
|
contrib:
|
|
@echo "CONTRIBUTORS\n" > CONTRIBUTORS
|
|
@git shortlog -ns | cut -f2 >> CONTRIBUTORS
|
|
|
|
pdf:
|
|
@groff -man -Tps ./yadm.1 > yadm.ps
|
|
@open yadm.ps
|
|
@sleep 1
|
|
@rm yadm.ps
|
|
|
|
.PHONY: test
|
|
test:
|
|
@bats test
|
|
|
|
man:
|
|
groff -man -Tascii ./yadm.1 | less
|
|
|
|
wide:
|
|
man ./yadm.1
|