]> rtime.felk.cvut.cz Git - omk/sssa.git/commitdiff
Changed ambiguous CONFGEN filename
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 12 May 2009 09:49:09 +0000 (11:49 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 12 May 2009 09:49:09 +0000 (11:49 +0200)
CONFGEN message included the name of the stamp file without the
extension. This was ambiguous because in the case of named (not
LOCAL_CONFIG_H) config files, the final header file is located in
different directory than stamp file and therefore the message mentioned
a non-existent file path. Now, the CONFGEN message only includes
filename without directory. The full path is shown in update message.

snippets/config_h.omk

index 9718d85b0d4cb4c3477c7f331191be11a30ea4c9..a7d46b1a3be207ce0cb76d9cf8ebc86d1c2e0c31 100644 (file)
@@ -12,7 +12,7 @@
 define BUILD_CONFIG_H_template
 
 $(addprefix $(1)/,$(notdir $(addsuffix .stamp,$(2)))) : $(CONFIG_FILES)
-       @$(QUIET_CMD_ECHO) "  CONFGEN $$(@:%.stamp=%)"
+       @$(QUIET_CMD_ECHO) "  CONFGEN $(notdir $(2))"
        @if [ ! -d `dirname $(2).tmp` ] ; then \
                mkdir -p `dirname $(2).tmp` ; fi
        @echo "/* Automatically generated from */" > "$(2).tmp"