fixed the makefiles. works with pdfs now