]> rtime.felk.cvut.cz Git - omk/sssa.git/commitdiff
Added dependency of IDL generated files on IDL compiler
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 21 May 2009 10:43:13 +0000 (12:43 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 21 May 2009 11:02:05 +0000 (13:02 +0200)
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.

snippets/linux.omk

index b4975140404b4580005a11182af5c0b5d405aa6d..1b52ae3d343e8a0392d4d7e334ccec0a4fba3793 100644 (file)
@@ -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