mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-05 07:04:43 +00:00
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.
This commit is contained 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user