From 3263626feb329ea711fad5b92a11ee3f0440c7bb Mon Sep 17 00:00:00 2001
From: Diego Biurrun <diego@biurrun.de>
Date: Tue, 3 Oct 2006 17:42:17 +0000
Subject: [PATCH] Mark all phony targets as such.

Originally committed as revision 6538 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 Makefile            | 6 +++---
 common.mak          | 2 ++
 doc/Makefile        | 2 ++
 libavcodec/Makefile | 2 ++
 tests/Makefile      | 3 +++
 vhook/Makefile      | 2 ++
 6 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 4fdd25b93fd..bf00a3e72ca 100644
--- a/Makefile
+++ b/Makefile
@@ -118,8 +118,6 @@ videohook: .libs
 documentation:
 	$(MAKE) -C doc all
 
-.PHONY: install
-
 install: install-progs install-libs install-headers install-man $(INSTALLVHOOK)
 
 ifeq ($(BUILD_SHARED),yes)
@@ -263,7 +261,9 @@ tar:
 	( cd /tmp ; tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude .svn )
 	rm -rf /tmp/$(FILE)
 
-.PHONY: lib
+.PHONY: all lib videohook documentation install* wininstaller uninstall*
+.PHONY: dep depend clean distclean TAGS tar
+.PHONY: codectest libavtest test-server fulltest test mpeg4 mpeg
 
 ifneq ($(wildcard .depend),)
 include .depend
diff --git a/common.mak b/common.mak
index 0961c1740f6..9211db57659 100644
--- a/common.mak
+++ b/common.mak
@@ -89,6 +89,8 @@ uninstall-headers:
 	rm -f "$(addprefix $(incdir)/,$(HEADERS))"
 	rm -f "$(libdir)/pkgconfig/lib$(NAME).pc"
 
+.PHONY: all depend dep clean distclean install* uninstall*
+
 #
 # include dependency files if they exist
 #
diff --git a/doc/Makefile b/doc/Makefile
index 744a9fbc18d..287836f71f3 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -16,3 +16,5 @@ all: ffmpeg-doc.html faq.html ffserver-doc.html ffplay-doc.html hooks.html \
 
 clean:
 	rm -f *.html *.pod *.1
+
+.PHONY: all clean
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 2d6f57ab23d..879a38aeb5d 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -422,3 +422,5 @@ motion-test: motion_test.o $(LIB)
 
 fft-test: fft-test.o $(LIB)
 	$(CC) -o $@ $^ $(LIBAVUTIL) -lm
+
+.PHONY: amrlibs tests
diff --git a/tests/Makefile b/tests/Makefile
index a5b34dbb23e..835fab6cbf6 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -78,3 +78,6 @@ dsptest: dsptest.c $(DSPDEPS)
 distclean clean:
 	rm -rf vsynth1 vsynth2 data
 	rm -f asynth1.sw *~ audiogen$(EXESUF) videogen$(EXESUF) rotozoom$(EXESUF) tiny_psnr$(EXESUF)
+
+.PHONY: all fulltest test codectest libavtest test-server
+.PHONY: mpeg4 mpeg ac3 snow snowll distclean clean
diff --git a/vhook/Makefile b/vhook/Makefile
index d336d0445ff..75dc4d8e11f 100644
--- a/vhook/Makefile
+++ b/vhook/Makefile
@@ -44,6 +44,8 @@ clean:
 distclean: clean
 	rm -f .depend
 
+.PHONY: all depend dep clean distclean install* uninstall*
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif
-- 
GitLab