| 
									
										
										
										
											2007-07-02 22:27:46 +00:00
										 |  |  | include ../../makeopts | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | pdf: asterisk.pdf | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | asterisk.pdf: $(wildcard *.tex) | 
					
						
							|  |  |  | ifeq ($(findstring rubber,$(RUBBER)),) | 
					
						
							|  |  |  | 	@echo "**********************************************" | 
					
						
							|  |  |  | 	@echo "** You must install the \"rubber\" tool      ***" | 
					
						
							|  |  |  | 	@echo "** to generate the Asterisk reference PDF. ***" | 
					
						
							|  |  |  | 	@echo "**********************************************" | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  | 	@echo "**********************************************" | 
					
						
							|  |  |  | 	@echo "** The Asterisk reference PDF will now be  ***" | 
					
						
							|  |  |  | 	@echo "** generated.  When complete, it will be   ***" | 
					
						
							|  |  |  | 	@echo "** located at asterisk.pdf.                ***"	 | 
					
						
							|  |  |  | 	@echo "**********************************************" | 
					
						
							| 
									
										
										
										
											2008-01-11 23:57:01 +00:00
										 |  |  | ifneq ($(findstring kpsewhich,$(KPATHSEA)),) | 
					
						
							| 
									
										
										
										
											2008-08-14 22:43:50 +00:00
										 |  |  | ifeq ($(findstring fncychap.sty,$(shell find `$(KPATHSEA) --expand-braces='$${TEXMF}'| tr -d \! | sed 's/:/ /g'` -name fncychap.sty -print)),) | 
					
						
							| 
									
										
										
										
											2008-01-11 23:57:01 +00:00
										 |  |  | 	@echo | 
					
						
							|  |  |  | 	@echo "WARNING:  The fncychap.sty document was not found" | 
					
						
							|  |  |  | 	@echo "On Ubuntu, install the texlive-latex-extra package." | 
					
						
							|  |  |  | 	@echo | 
					
						
							|  |  |  | 	@exit | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | endif | 
					
						
							| 
									
										
										
										
											2007-07-02 22:27:46 +00:00
										 |  |  | 	@cp asterisk.tex asterisk.tex.orig | 
					
						
							| 
									
										
										
										
											2009-01-23 23:53:03 +00:00
										 |  |  | 	@sed -e 's/ASTERISKVERSION/$(shell echo $(ASTERISKVERSION) | sed -e 's/\//\\\//g' | sed -e 's/_/\\\\_/g')/' asterisk.tex > asterisk_local.tex | 
					
						
							| 
									
										
										
										
											2008-07-13 23:14:03 +00:00
										 |  |  | 	@mv asterisk_local.tex asterisk.tex | 
					
						
							| 
									
										
										
										
											2007-07-02 22:27:46 +00:00
										 |  |  | 	@$(RUBBER) --pdf asterisk.tex | 
					
						
							|  |  |  | 	@mv asterisk.tex.orig asterisk.tex | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | html: | 
					
						
							|  |  |  | 	@echo "**********************************************" | 
					
						
							|  |  |  | 	@echo "** The Asterisk reference HTML will now be ***" | 
					
						
							|  |  |  | 	@echo "** generated.  When complete, it will be   ***" | 
					
						
							|  |  |  | 	@echo "** located in the asterisk/ directory.     ***"	 | 
					
						
							|  |  |  | 	@echo "** Note that the latex2html tool is        ***"	 | 
					
						
							|  |  |  | 	@echo "** required for this to work.              ***"	 | 
					
						
							|  |  |  | 	@echo "**********************************************" | 
					
						
							|  |  |  | 	@cp asterisk.tex asterisk.tex.orig | 
					
						
							| 
									
										
										
										
											2008-07-13 23:14:03 +00:00
										 |  |  | 	@sed -e 's/ASTERISKVERSION/$(ASTERISKVERSION)/' asterisk.tex > asterisk_local.tex | 
					
						
							|  |  |  | 	@mv asterisk_local.tex asterisk.tex | 
					
						
							| 
									
										
										
										
											2007-07-02 22:27:46 +00:00
										 |  |  | 	@latex2html asterisk.tex | 
					
						
							|  |  |  | 	@mv asterisk.tex.orig asterisk.tex | 
					
						
							|  |  |  | 
 |