mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
Remove code for .depend generation, inclusion and related hacks.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26581 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d73a7beb00
commit
d4f42c4d46
3
Makefile
3
Makefile
@ -678,9 +678,6 @@ all: $(ALL_PRG)
|
||||
recurse:
|
||||
for part in $(PARTS); do $(MAKE) -C $$part; done
|
||||
|
||||
# Hack to keep .depend from being generated at the top level unnecessarily.
|
||||
DEPS = foo
|
||||
|
||||
include mpcommon.mak
|
||||
|
||||
DEPS = $(filter-out %.S,$(patsubst %.cpp,%.d,$(patsubst %.c,%.d,$(SRCS_COMMON) $(SRCS_MPLAYER:.m=.d) $(SRCS_MENCODER))))
|
||||
|
11
mpcommon.mak
11
mpcommon.mak
@ -27,10 +27,7 @@ clean::
|
||||
rm -f *.o *.a *.ho *~
|
||||
|
||||
distclean:: clean
|
||||
rm -f *.d .depend test test2
|
||||
|
||||
.depend: $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER)
|
||||
$(MPDEPEND_CMD) > $@
|
||||
rm -f *.d test test2
|
||||
|
||||
%.d: %.c
|
||||
$(MPDEPEND_CMD) > $@
|
||||
@ -50,10 +47,4 @@ distclean:: clean
|
||||
ALLHEADERS = $(wildcard *.h)
|
||||
checkheaders: $(ALLHEADERS:.h=.ho)
|
||||
|
||||
# Hack to keep .depend from being generated at the top level unnecessarily.
|
||||
ifndef DEPS
|
||||
DEPS = .depend
|
||||
endif
|
||||
-include $(DEPS)
|
||||
|
||||
.PHONY: libs *clean dep depend
|
||||
|
Loading…
Reference in New Issue
Block a user