Re: build paths and generated sources

2006-01-30 Thread Thomas Porschberg
Execellent, exactly what I was looking for. On Mon, 30 Jan 2006 00:36:46 +0100 Andreas Schwab [EMAIL PROTECTED] wrote: Thomas Porschberg [EMAIL PROTECTED] writes: %.cpp %.h: %.ui @UIC@ -o $(:%.ui=%.h) $ @UIC@ -i $(:%.ui=%.h) -o $(:%.ui=%.cpp) $ You should not use $

build paths and generated sources

2006-01-29 Thread Thomas Porschberg
Hi, we run automake (and autoconf,libtool) in a project which uses the QT library. Programming with QT involves to generate *cpp,*h from so called *ui files and *moc files from header files. The way we do this in Makefile.am is as follows: BUILT_SOURCES = here are all generated moc and

Re: build paths and generated sources

2006-01-29 Thread Andreas Schwab
Thomas Porschberg [EMAIL PROTECTED] writes: %.cpp %.h: %.ui @UIC@ -o $(:%.ui=%.h) $ @UIC@ -i $(:%.ui=%.h) -o $(:%.ui=%.cpp) $ You should not use $ for constructing targets, only $@ will contain the right name to create. IIUC the commands are creating the each of two targets