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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user