Je continue mon monologue...
En fait le problème est encore plus loin, BUILT_SOURCES fait appel a la regle sfhashfcn.c en premier:
Code :
- sfhashfcn.c: ../../sfutil/sfhashfcn.c
- @echo "HELLO "
- @src_file=$?;dst_file=$@; $(copy_no_static_hash)
- @echo WORLD!
|
Et la, le HELLO passe mais pas le WORLD!
L'erreur se cache donc sur la ligne du milieu.
Je vous met le $(copy_no_static_hash) si ca peut vous aider:
Code :
- copy_no_static_hash = \
- if test -f $$dst_file; then \
- x=`diff $$src_file $$dst_file.new >> /dev/null`; \
- if test "$$x" != "0"; then \
- echo "Updating " $$dst_file; \
- cp $$src_file $$dst_file.new; \
- sed -e "s/\#ifndef MODULUS_HASH/\#ifdef STATIC_HASH/" $$dst_file.new > $$dst_file; \
- fi \
- else \
- echo "Updating " $$dst_file; \
- cp $$src_file $$dst_file.new; \
- sed -e "s/\#ifndef MODULUS_HASH/\#ifdef STATIC_HASH/" $$dst_file.new > $$dst_file; \
- fi
|
Je ne comprend pas ce que AIX ne supporte pas...
Je vous remet l'erreur au cas ou :
Code :
- $> make
- HELLO
- /bin/sh: 0403-057 Syntax error at line 1 : `then' is not matched.
- make: 1254-004 The error code from the last command is 2.
- Stop.
- $>
|