aboutsummaryrefslogtreecommitdiffstats
path: root/doc/tex/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tex/Makefile')
-rw-r--r--doc/tex/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/tex/Makefile b/doc/tex/Makefile
index e0b1ecd9a..70ad5f14a 100644
--- a/doc/tex/Makefile
+++ b/doc/tex/Makefile
@@ -14,6 +14,15 @@ else
@echo "** generated. When complete, it will be ***"
@echo "** located at asterisk.pdf. ***"
@echo "**********************************************"
+ifneq ($(findstring kpsewhich,$(KPATHSEA)),)
+ifeq ($(findstring fncychap.sty,$(shell find `$(KPATHSEA) --expand-braces='$$(TEXMF)'| tr -d \! | sed 's/:/ /g'` -name fncychap.sty -print)),)
+ @echo
+ @echo "WARNING: The fncychap.sty document was not found"
+ @echo "On Ubuntu, install the texlive-latex-extra package."
+ @echo
+ @exit
+endif
+endif
@cp asterisk.tex asterisk.tex.orig
sed -i -e 's/ASTERISKVERSION/$(shell echo $(ASTERISKVERSION) | sed -e 's/\//\\\//g')/' asterisk.tex
@$(RUBBER) --pdf asterisk.tex