In my last post, I was asking about a for loop that I have finally figured out
how to get around. Now, I'm faced with a new problem. Here is the entire
Makefile.am
bin_PROGRAMS = colortool
# Generate a *.h file from a *.ui file
%.h: %.ui
uic $< -o $@
# Generate a *.cpp file from a *.ui fi
In my last post, I was asking about a for loop that I have finally figured out
how to get around. Now, I'm faced with a new problem. Here is the entire
Makefile.am
bin_PROGRAMS = colortool
# Generate a *.h file from a *.ui file
%.h: %.ui
uic $< -o $@
# Generate a *.cpp file from a *.ui fi
I have figured out how to compile qt-3.x programs using autotools with one
exception. qmake makes a file called image_collection which takes .png files
and combines them into one cpp file. It uses the command:
uic -embed appname image1.png image2.png -o image_collection
I tried writing the rule
When I build a library there is a hidden directory called .libs generated. Is
there a way to tell automake to put certain file in certain directories as
its building. For example, to put moc processed files in a directory
called .moc.
I'm trying to compile qt programs with automake. I used qmake to generate a
Makefile first and then converted this into an automake file. My latest
problem involves putting images into a form. Here's qmake's version of how
to do this.
.ui/qmake_image_collection.cpp: images/filenew \
I have written a Makefile.am and processed it with automake 1.10. Here's how
the file looks.
METASOURCES = AUTO
bin_PROGRAMS = pkgmaker
# This rule lets GNU make create any moc_*.cpp from the equivalent *.h
%.h: %.ui
$(UIC) -o $@ $<
%.cpp: %.ui
$(UIC) -o $@ -impl $*.h $<
# You have one .h