1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-19 10:26:36 +02:00

Make asciidoc 'optional'

Run `make doc` in the build directory after editing the asciidoc to
regenerate the manpages. Changes to asciidoc source and generated man
pages will need to be commited together.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
Loui Chang
2014-08-24 16:34:16 -04:00
parent 690f0221b5
commit 1a8fdb1b99
4 changed files with 12 additions and 10 deletions

View File

@ -29,7 +29,9 @@ install: toxic doc
section=$(abspath $(DESTDIR)/$(MANDIR))/man`echo $$f | rev | cut -d "." -f 1` ;\
file=$$section/$$f ;\
mkdir -p $$section ;\
install -m 0644 $$f $$file ;\
install -m 0644 $(DOC_DIR)/$$f $$file ;\
sed -i'' -e 's:__VERSION__:'$(VERSION)':g' $$file ;\
sed -i'' -e 's:__DATADIR__:'$(abspath $(DATADIR))':g' $$file ;\
gzip -f -9 $$file ;\
done