1
Fix dependencies of version.o and version.def to avoid unnecessary rebuilds.
3
Index: sgt-puzzles/Recipe
4
===================================================================
5
--- sgt-puzzles.orig/Recipe 2009-02-16 00:57:41.000000000 +0000
6
+++ sgt-puzzles/Recipe 2009-02-16 01:46:46.000000000 +0000
8
# For Unix, we also need the gross MD5 hack that causes automatic
9
# version number selection in release source archives.
13
+version.o: version.c version.def
14
+ $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version.def` -c version.c
16
if test -z "$(VER)" && test -f manifest && md5sum -c manifest; then \
17
- $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version.def` -c version.c; \
18
- elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \
19
- $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) "-DREVISION=`svnversion .`" -c version.c; \
22
- $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c version.c; \
23
+ if test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \
24
+ echo "-DREVISION=`svnversion .`" >version.def.new; \
26
+ echo "$(VER)" >version.def.new; \
28
+ if diff -q version.def.new version.def; then \
29
+ rm version.def.new; \
32
+ mv version.def.new version.def; \
37
!specialobj gtk version