About autoconf/automake problem



I lost your original mail but...

Suppose you want to compile foo that needs main.c and foo.c (that is
generated from another file let's say a def file)

so you do:

bin_PROGRAMS    = foo 
bin_SCRIPTS     = build-foo

foo_SOURCES_la_SOURCES = main.c foo.c

BUILT_SOURCES = foo.c
       
BUILD =  $(srcdir)/build-foo

foo.c: $(BUILD) foo.defs

Makefile: $(BUILT_SOURCES)

THis will do the trick. 
Look at guile-gtk for a real life example.

Hope this helps

ariel

 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]