From 3df9f6dc8548b0562312036abfbfcf9850a81041 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Sun, 18 Jan 2015 10:39:43 +0000
Subject: Rebuilt the final Makefile only if its sources have changed.

git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@458 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
---
 ChangeLog                          | 5 +++++
 src/arch/arm/v7/opdefs/Makefile.am | 7 ++++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7e13a2f..f730ae1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+15-01-18  Cyrille Bagard <nocbos@gmail.com>
+
+	* src/arch/arm/v7/opdefs/Makefile.am:
+	Rebuild the final Makefile only if its sources have changed.
+
 15-01-16  Cyrille Bagard <nocbos@gmail.com>
 
 	* src/arch/arm/v7/opcodes/opcodes_tmp_thumb_16.h:
diff --git a/src/arch/arm/v7/opdefs/Makefile.am b/src/arch/arm/v7/opdefs/Makefile.am
index 44dda82..0966e2e 100644
--- a/src/arch/arm/v7/opdefs/Makefile.am
+++ b/src/arch/arm/v7/opdefs/Makefile.am
@@ -91,10 +91,11 @@ ARMV7_DEFS = 							\
 	subs_B9320.d
 
 
-all: $(ARMV7_DEFS:.d=.g) generate_final_makefile fix_includes_in_c_templates fix_includes_in_h_templates untabify_disass
+all: $(ARMV7_DEFS:.d=.g) fmk.done fix_includes_in_c_templates fix_includes_in_h_templates untabify_disass
 
-generate_final_makefile:
+fmk.done: $(ARMV7_DEFS)
 	$(GEN_BIN) ../opcodes/ ../opdefs/.gen ../../../../../tools/d2c/globalgen.mk arm thumb_32 thumb_16
+	touch $@
 
 fix_includes_in_c_templates:
 	@for f in `find .gen/ -name '*tmpl.c'`; do			\
@@ -111,4 +112,4 @@ fix_includes_in_h_templates:
 	done
 
 clean:
-	rm -rf $(ARMV7_DEFS:.d=.g) .gen
+	rm -rf $(ARMV7_DEFS:.d=.g) .gen fmk.done
-- 
cgit v0.11.2-87-g4458