From: Michal Sojka Date: Thu, 21 May 2009 10:43:13 +0000 (+0200) Subject: Added dependency of IDL generated files on IDL compiler X-Git-Url: http://rtime.felk.cvut.cz/gitweb/omk/sssa.git/commitdiff_plain/db8cf3b9a0335a0a5e7381fc8642c4e2531674a4?hp=48160373ac3004bcbec463b43d20def3329cb22d Added dependency of IDL generated files on IDL compiler It is expected that the IDL compiler executable is the first word in the IDL_COMPILER variable. If the first word is not a file (e.g. shell variable assignment), it will work correctly as $(wildcard ) is used and it will return empty string in that case. --- diff --git a/snippets/linux.omk b/snippets/linux.omk index b497514..1b52ae3 100644 --- a/snippets/linux.omk +++ b/snippets/linux.omk @@ -251,7 +251,7 @@ endef define COMPILE_idl_template -$(2).c $(2)-stubs.c $(2)-skels.c $(2)-common.c $(2).h: $(1) +$(2).c $(2)-stubs.c $(2)-skels.c $(2)-common.c $(2).h: $(1) $$(wildcard $$(firstword $$(idl_COMPILE))) @$(QUIET_CMD_ECHO) " IDL $$@" $(Q) $$(idl_COMPILE) $$($(2)_IDLFLAGS) $(1) endef