OSDN Git Service

build: move special targets to end of main Makefile
authorMans Rullgard <mans@mansr.com>
Mon, 6 Jun 2011 14:21:12 +0000 (15:21 +0100)
committerMans Rullgard <mans@mansr.com>
Thu, 23 Jun 2011 11:16:53 +0000 (12:16 +0100)
Signed-off-by: Mans Rullgard <mans@mansr.com>
Makefile
common.mak

index f4d03d4..75fe364 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -145,5 +145,13 @@ check: test checkheaders
 include doc/Makefile
 include tests/Makefile
 
+# Dummy rule to stop make trying to rebuild removed or renamed headers
+%.h:
+       @:
+
+# Disable suffix rules.  Most of the builtin rules are suffix rules,
+# so this saves some time on slow systems.
+.SUFFIXES:
+
 .PHONY: all alltools *clean check config examples install*
 .PHONY: testprogs uninstall*
index e9e69f2..8d21d15 100644 (file)
@@ -43,14 +43,6 @@ HOSTCFLAGS += $(IFLAGS)
 
 %.c %.h: TAG = GEN
 
-# Dummy rule to stop make trying to rebuild removed or renamed headers
-%.h:
-       @:
-
-# Disable suffix rules.  Most of the builtin rules are suffix rules,
-# so this saves some time on slow systems.
-.SUFFIXES:
-
 endif
 
 OBJS-$(HAVE_MMX) +=  $(MMX-OBJS-yes)