From 02f8bfcfe385e6ef53bfec2cb418a349fc6d1b24 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 25 Jul 2007 21:29:02 +0000 Subject: Fix code generation rule so generator runs only once even if multiple generator files have changed. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@559617 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp/src') diff --git a/cpp/src/Makefile.am b/cpp/src/Makefile.am index 17cb66f9ff..e66bc5ef18 100644 --- a/cpp/src/Makefile.am +++ b/cpp/src/Makefile.am @@ -3,8 +3,11 @@ SUBDIRS = . tests # Generated code -include generate.mk -generate.mk $(generated_cpp) $(generated_h): generate.sh $(generator) +generate.mk $(generated_cpp) $(generated_h): gen + +gen: generate.sh $(generator) $(srcdir)/generate.sh + touch gen # Empty rule in case a generator file is renamed/removed. $(generator): -- cgit v1.2.1