1#------------------------------------------------------------------------------ 2# KLU Makefile for creating the user guide 3#------------------------------------------------------------------------------ 4 5default: dist 6 7include ../../SuiteSparse_config/SuiteSparse_config.mk 8 9#------------------------------------------------------------------------------ 10# Remove all but the files in the original distribution 11#------------------------------------------------------------------------------ 12 13clean: 14 - $(RM) -r $(CLEAN) 15 16purge: distclean 17 18distclean: clean 19 - $(RM) -r $(PURGE) 20 21#------------------------------------------------------------------------------ 22# Create the User Guide and Quick Start Guide 23#------------------------------------------------------------------------------ 24 25KLU_UserGuide.pdf: KLU_UserGuide.tex KLU_UserGuide.bib \ 26 ../Include/klu.h ../../BTF/Include/btf.h Makefile 27 echo '\\begin{verbatim}' > klu_h.tex 28 expand -8 ../Include/klu.h >> klu_h.tex 29 echo '\\end{verbatim}' >> klu_h.tex 30 echo '\\begin{verbatim}' > btf_h.tex 31 expand -8 ../../BTF/Include/btf.h >> btf_h.tex 32 echo '\\end{verbatim}' >> btf_h.tex 33 echo '\\begin{verbatim}' > klu_simple_c.tex 34 expand -8 ../Demo/klu_simple.c >> klu_simple_c.tex 35 echo '\\end{verbatim}' >> klu_simple_c.tex 36 pdflatex KLU_UserGuide 37 bibtex KLU_UserGuide 38 pdflatex KLU_UserGuide 39 pdflatex KLU_UserGuide 40 41dist: KLU_UserGuide.pdf 42 - $(RM) *.aux *.bbl *.blg *.log *.toc 43 - $(RM) klu_simple_c.tex klu_h.tex btf_h.tex 44 45