[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building prog first
From: |
Ralf Wildenhues |
Subject: |
Re: Building prog first |
Date: |
Sun, 21 Mar 2010 07:19:46 +0100 |
User-agent: |
Mutt/1.5.20 (2009-10-28) |
Hello Russell,
* Russell Shaw wrote on Sun, Mar 21, 2010 at 07:06:00AM CET:
> I want the "unimain" program built first, then use it to generate
> unidata.tab.c, which is then compiled and linked into librunicode.la
>
> bin_PROGRAMS = unimain
> unimain_SOURCES = unimain.c
> unidata.tab.c: /usr/share/unicode/UnicodeData.txt
> ./unimain $< > $@
Then you need a dependency from unidata.tab.c on unimain:
unidata.tab.c: unimain$(EXEEXT) /usr/share/unicode/UnicodeData.txt
./unimain$(EXEEXT) $< > $@
Furthermore, please don't hard-code absolute paths like
/usr/share/unicode/UnicodeData.txt
in your makefiles. Make them configurable by configure. Maybe your
users don't have root rights on their system but have the file installed
below their home somewhere?
Cheers,
Ralf
- Building prog first, Russell Shaw, 2010/03/21
- Re: Building prog first,
Ralf Wildenhues <=
- Re: Building prog first, Russell Shaw, 2010/03/21
- Re: Building prog first, Russell Shaw, 2010/03/21
- Re: Building prog first, Alfred M. Szmidt, 2010/03/21
- Re: Building prog first, Ralf Wildenhues, 2010/03/21
- Re: Building prog first, Russell Shaw, 2010/03/21
- Re: Building prog first, Ralf Wildenhues, 2010/03/21
- Re: Building prog first, Russell Shaw, 2010/03/21
- Re: Building prog first, Alfred M. Szmidt, 2010/03/21
- Re: Building prog first, Russell Shaw, 2010/03/21