mirror of
https://github.com/rd235/cado
synced 2025-01-14 14:46:14 +01:00
17 lines
365 B
Makefile
17 lines
365 B
Makefile
|
RONN=ronn
|
||
|
RONNOK := $(shell command -v ${RONN} 2> /dev/null)
|
||
|
|
||
|
none:
|
||
|
|
||
|
% : %.ronn
|
||
|
ifdef RONNOK
|
||
|
# copy copyright notice
|
||
|
grep "^\.\\\\\"" $< > $@ || true
|
||
|
# run ronn
|
||
|
$(RONN) -r ${RONN_ARGS} --pipe $< >> $@
|
||
|
# delete useless trailing "" in .TH
|
||
|
sed -i '/^\.TH /s/ ""$$//' $@
|
||
|
else
|
||
|
echo "${RONN} is not available. Manpage $@ cannot be updated" >/dev/stderr >&2
|
||
|
endif
|