Salut à tous, désolé si la question peut vous paraitre débile mais je suis un noob en makefile et je n’arrive pas à corriger mon erreur qui est:
/bin/bash: -c: line 1: syntax error: unexpected end of file
Voici mon code:
genes: $(SPECIESFILEPATH) $(OUTPUT_DIR)go go.obsolete
@$(MYSQL) -e "SELECT CONCAT(s.speciesId, '__', s.genomeSpeciesId, '__', s.genus, '_', REPLACE(s.species, ' ', '_'), '__', d.dataSourceName) FROM species s, dataSource d WHERE s.dataSourceId=d.dataSourceId ORDER BY s.speciesId" | grep -v 'speciesId' >$@.tmp
@if [[ -s $@.tmp ]]; then echo -n; else echo "NO species in file"; exit 2; fi
# Insert gene
@for sp in `cat $@.tmp`; do \
export PERL5LIBORI=$$PERL5LIB; \
echo "species: $$sp"; \
if [[ `echo $$sp | grep 'non_Ensembl$$'` ]]; then \
perl myscript_V1.pl >> $@.tmp 2>>$@.err; \
else
if [[ `echo $$sp | grep 'Ensembl$$'` ]]; then \
export PERL5LIB=`echo $$PERL5LIB | perl -ne 'print join ":", map { s/\/ensembl\//\/ensembl_$(ENS_API_RELEASE)\//; $$_ } grep { /\w/ } split(/:/, $$_)'`; \
elif [[ `echo $$sp | grep 'EnsemblMetazoa$$'` ]]; then \
export PERL5LIB=`echo $$PERL5LIB | perl -ne 'print join ":", map { s/\/ensembl\//\/ensembl_$(ENSMETAZOA_API_RELEASE)\//; $$_ } grep { /\w/ } split(/:/, $$_)'`; \
perl myscript_V2.pl >> $@.tmp 2>>$@.err; \
fi; \
fi; \
export PERL5LIB=$$PERL5LIBORI; \
done
@if [[ -s $@.err ]]; then echo -n; else $(RM) $@.err; fi
@$(MV) $@.tmp $@
+0
-0