I always have trouble remembering these.
$@ - Your target $^ - All of your dependencies $< - Your first dependency $? - All dependencies newer than the target $* - The stem of an implicit rule match (a.c -> a)
%.pdf : %.dvi dvipdf $^ $@ %.dvi : %.tex latex $^
Use $$:
echo $$bash_variable