build: fix breakage in building bin2char
[fw/openocd] / src / Makefile.am
index 8f96b05380d3c9d40ff4f5b9e1c86c2a52eddf2f..913118f25cfa67c561d23b4a7a2dd967559442a0 100644 (file)
@@ -112,7 +112,7 @@ BUILT_SOURCES = startup.tcl
 startup.tcl: $(STARTUP_TCL_SRCS)
        cat $^ > $@
 
-BIN2C = $(builddir)/helper/bin2char$(EXEEXT_FOR_BUILD)
+BIN2C = $(top_builddir)/src/helper/bin2char$(EXEEXT_FOR_BUILD)
 
 # Convert .tcl to cfile
 startup_tcl.c: startup.tcl $(BIN2C)