diff --git a/Makefile b/Makefile
index 906f99f79cfb96aab37a7d42745f5eb3287ae95a..f9ff80eaac72ea695f8e5ed12e8569fc22c85038 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ docs.pdf: images/wide.jpg $(wildcard *.sty)
 	pdflatex -shell-escape docs.tex
 test.pdf: test.tex $(wildcard *.sty)
 	pdflatex -shell-escape test.tex
-resources.pdf: resources.tex CS.tex backpage.tex commands.tex
+resources.pdf: $(wildcard *.tex) $(wildcard *.sty) 
 	pdflatex -shell-escape resources.tex
 rules.pdf: rules.tex rules $(wildcard *.sty)
 	pdflatex -shell-escape rules.tex