My supervisor fixed it by adding an extra $ sign :) %.stats: %.int %.sam (echo -n "Total "; zcat ../raw/shNuak1-D704_S4_L001_R1_001_sample.fastq.gz| echo -n $$((`wc -l`/4)); ) > test.stats
-- View this message in context: http://gnu-make.2324884.n4.nabble.com/syntax-error-near-unexpected-token-tp16488p16489.html Sent from the Gnu - Make - Help mailing list archive at Nabble.com. _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make