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 $
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
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