Hi. I would like to be able to include a generated file each time I run
make. I have a small script that generates some make rules. The file
should be generated *always*, and the results of the file should be
included by make.

I tried something like this:

file:
        ./gen_file

include file

.PHONY: file

But it doesn't work. It seems that make first includes the (old) file,
then regenerate it. I tried to add a rule like Makefile: file to tell make
to remake the Makefile itself when "file" is changed but it doesn't work
either.

This usually works with "automatic dependencies", so I guess there should
be any way to get arround, but I tried and tried and came up with nothing.

Any ideas?

Thanks!

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
41% of all people take people with curly hair less seriously



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to