[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Pre-including a generated file
From: |
Leandro Lucarella |
Subject: |
Pre-including a generated file |
Date: |
Wed, 12 Aug 2009 11:46:06 -0300 |
User-agent: |
mutt-ng/devel-r804 (Debian) |
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
- Pre-including a generated file,
Leandro Lucarella <=
Re: Pre-including a generated file, Paul Smith, 2009/08/12