I have a C header file, used by a program, that is generated from a script that takes a text file as input.
The problem is that when xmkmf -a
is run, I get
myprogram.c:114:25: fatal error: generated_header.h: No such file or directory
The command to generate the header is like
myscript header_input.txt > generated_header.h
How do I handle a header being generated with imake?
I tried adding rules that say
myprogram.c: generated_header.h
but the make depend gets ran and fails before this rule is ran to generate the file. (Things work fine if I just do xmkmf
rather than xmkmf -a
but the probably here is that running xmkmf -a
is the standard way of using imake.)
I'm not experienced with imake and there doesn't seem to be a lot of documentation so I'm stumbling. Any help would be appreciated.