[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
Makefiles again... The coursework for one of my modules is to write a compiler. They've given us a basic framework which we have to add to, but they've been a bit annoying about the tools and file names. We're using java/antlr, and we've been given lex.g, syn.g, sem.g, irt.g, cg.g. The make code from these we run for example "antlr lex.g", which produces Lex.class and LexTokenTypes.class, along with intermediate files Lex.java, LexTokenTypes.txt and LexTokenTypes.java. I'm trying to write a makefile for this lot, and I'm lazy so want to write an implicit rule for it all. Unfortunately because the case is different for the target and the dependency I can't work out how to do it. Any ideas? Thanks. Simon -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html