From 2f599f875d6ec572d202f98f8b33e3c117c1932b Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 22 May 2025 11:09:53 +0200 Subject: [PATCH] Makefile.in: improve POSTPROCESS_DEPS In FreeBSD 14.2 Make, $*.d strips the path, eg. src/tst.o becomes tst.d not src/tst.d. --- Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index ff16ca009..cea71b2a3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -255,10 +255,10 @@ bin/hd-rum-av: $(srcdir)/data/template/bin/hd-rum-av -include $(DEP_FILES) POSTPROCESS_DEPS = \ - @cp $*.d $*.P; \ + @cp ${@:.o=.d} ${@:.o=.P}; \ sed -e 's/\#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ - -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ - rm -f $*.d + -e '/^$$/ d' -e 's/$$/ :/' < ${@:.o=.d} >> ${@:.o=.P}; \ + rm -f ${@:.o=.d} .SUFFIXES: .o .c .cpp .cu .m .mm