diff --git a/test/mozcentral/Makefile.in b/test/mozcentral/Makefile.in
index ca686d1b4..986b07100 100644
--- a/test/mozcentral/Makefile.in
+++ b/test/mozcentral/Makefile.in
@@ -2,11 +2,11 @@
 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
 # You can obtain one at http://mozilla.org/MPL/2.0/.
 
-DEPTH     = ../../../..
+DEPTH     = @DEPTH@
 topsrcdir = @top_srcdir@
 srcdir    = @srcdir@
 VPATH     = @srcdir@
-relativesrcdir  = browser/extensions/pdfjs/test
+relativesrcdir  = @relativesrcdir@
 
 include $(DEPTH)/config/autoconf.mk