Need Code to Run Before Targets Are Processed?

2008-07-31 Thread Bobby Dill
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

Need Code to Run Before Targets Are Processed?

2008-07-31 Thread Bobby Dill
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

My rule doesn't seem to work

2008-07-30 Thread Bobby Dill
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

Building things a little differently?

2008-06-01 Thread Bobby Dill
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.

Need Help Writing a Rule

2008-05-25 Thread Bobby Dill
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 \

BUILT_SOURCES doesn't seem to work

2008-05-04 Thread Bobby Dill
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