Is it possible to cancel implicit rules, using suffix syntax?

2004-10-18 Thread Niels Möller
I'm trying the following Makefile for building an executable from a .c source file: : .SUFFIXES: .o .c : .PRECIOUS: %.o : : % : %.c : .o: : echo linking : .c.o: : echo compiling This works like it should, for example $ touch foo.c $ make -n foo echo compiling echo linking

Re: Guidelines for generating files into the source dir

2003-02-11 Thread Niels Möller
I wrote: > For a long time, using $(srcdir) in targets and prerequisites in > Makefiles have seemed a little magic to me. It breaks too often, > usually in ways like automatic dependency generation not working. Ooops, I sent this mail too early, before getting to the conclusion. Anyway, I think m

Guidelines for generating files into the source dir

2003-02-11 Thread Niels Möller
For a long time, using $(srcdir) in targets and prerequisites in Makefiles have seemed a little magic to me. It breaks too often, usually in ways like automatic dependency generation not working. So I've tried to create a small toy project, and a testscript that builds the projects in various ways