Makefiles: better dependencies for SEI version number
authorLoren Merritt <pengvado@videolan.org>
Sun, 10 Apr 2005 23:35:01 +0000 (23:35 +0000)
committerLoren Merritt <pengvado@videolan.org>
Sun, 10 Apr 2005 23:35:01 +0000 (23:35 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@190 df754926-b1dd-0310-bc7b-ec298dee348c

Makefile
build/cygwin/Makefile

index b2a85d5..ca1e066 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -96,7 +96,7 @@ checkasm: testing/checkasm.c libx264.a
 # Hacky - because gcc 2.9x doesn't have -MT
        $(foreach SRC, $(SRCS) x264.c, ( echo -n "`dirname $(SRC)`/" && $(CC) $(CFLAGS) $(SRC) -MM -g0 ) 1>> .depend;)
 
-config.h: $(wildcard .svn/entries */.svn/entries)
+config.h: $(wildcard .svn/entries */.svn/entries */*/.svn/entries)
        ./version.sh
 
 depend: .depend
index 70d7b8d..7a39d1a 100644 (file)
@@ -98,8 +98,8 @@ $(DIR_BUILD):
        @mkdir -p $(DIR_BUILD)/$(@D)
        @$(CC) $(CFLAGS) -c -o $(DIR_BUILD)/$@ $<
 
-encoder/set.c: config.h
-config.h:
+encoder/set.obj: config.h
+config.h: $(wildcard $(DIR_SRC)/.svn/entries $(DIR_SRC)/*/.svn/entries $(DIR_SRC)/*/*/.svn/entries)
        @echo " C: $@"
        @cd $(DIR_SRC) && \
        ./version.sh