mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 17:12:36 +00:00
Makefile: prevent default build rules being used on FFmpeg files
After adding .o files to the dependencies of FFmpeg .a files make tried to build those .o files with default rules before recursing to the FFmpeg subdirs. Fix this by adding a dummy rule. Also fix incorrectly placed parentheses in the command creating the FFMPEGFILES list. That resulted in some files being listed multiple times, triggering warnings from the dummy rule.
This commit is contained in:
parent
a36945fe44
commit
bc4c570ab1
6
Makefile
6
Makefile
@ -768,7 +768,7 @@ PARTS = ffmpeg/libavcodec \
|
||||
libswscale \
|
||||
|
||||
FFMPEGLIBS = $(foreach part, $(PARTS), $(part)/$(notdir $(part)).a)
|
||||
FFMPEGFILES = $(foreach part, $(PARTS), $(part)/*.[choS] ffmpeg/libavcodec/*/*.[choS]) ffmpeg/libavcodec/*/*.asm
|
||||
FFMPEGFILES = $(foreach part, $(PARTS), $(part)/*.[choS]) ffmpeg/libavcodec/*/*.[choS] ffmpeg/libavcodec/*/*.asm
|
||||
|
||||
|
||||
|
||||
@ -796,6 +796,10 @@ checkheaders: $(ALLHEADERS:.h=.ho)
|
||||
dep depend: $(DEPS)
|
||||
for part in $(PARTS); do $(MAKE) -C $$part depend; done
|
||||
|
||||
# dummy to prevent default build rules from being used for FFMPEGFILES
|
||||
$(FFMPEGFILES):
|
||||
echo "this shouldn't run"
|
||||
|
||||
$(FFMPEGLIBS): $(FFMPEGFILES) config.h
|
||||
$(MAKE) -C $(@D)
|
||||
touch $@
|
||||
|
Loading…
Reference in New Issue
Block a user