@default_files = ('carreira_phd_thesis.tex'); # Run latexmk silently, not output to text $silent = 0; $quiet = 0; # Create file containing a list of the files that these programs have read and written # For better source file detection $recorder = 1; # Generate a pdf version of the document using pdflatex $pdf_mode = 1; $pdflatex = "pdflatex -synctex=1 -interaction=nonstopmode --shell-escape"; # Use bibtex if an appropriate *.bib file exists $bibtex_use = 1; # If nonzero, continue processing past minor latex errors including unrecognized cross references $force_mode = 0; # Define all output directories to be "tmp" # All build files will now be placed in this directory #$aux_dir = "tmp"; #$tmpdir = "tmp"; #$out_dir = 'tmp'; add_cus_dep('glo', 'gls', 0, 'makeglossaries'); add_cus_dep('acn', 'acr', 0, 'makeglossaries'); sub makeglossaries { system "makeglossaries $_[0]"; if ( -z "$_[0].glo" ) { open GLS, ">$_[0].gls"; close GLS; } return 0; } add_cus_dep('gnuplot','tex', 1, 'makegnu2tex'); sub makegnu2tex { system("gnuplot -e \"call '$_[0].gnuplot'\"") ; } $clean_ext = "out snm acn acr aux alg bbl blg fls ist log lof lot maf out toc nav xdy";