User forums > Using Code::Blocks
File custom build with more than one command
(1/1)
Michael:
Hello,
I am trying to use custom build (C::B rev2285) and it works. Anyway, I would like to use more than one command. For example the file I have CDITool.ui should generate 2 files: a .h and a .cpp. Moreover, the .h should be moc'ed (by using Qt tool). I have tried to give all the necessary command separated by a &&, but it did not work. Here is my custom build:
--- Quote ---$(#Qt)\bin\uic.exe ".\CDIToolDefault.ui" -o ".\CDIToolDefault.h" && $(#Qt)\bin\uic.exe ".\CDIToolDefault.ui" -i ".\CDIToolDefault.h" -o ".\CDIToolDefault.cpp" && $(#Qt)\bin\moc.exe ".\CDIToolDefault.h" -o "tmp\moc\moc_CDIToolDefault.cpp"
--- End quote ---
If I use just one command it works.
How can I specify more commands?
Thank you very much.
Best wishes,
Michael
mandrav:
--- Quote ---How can I specify more commands?
--- End quote ---
Hmm, one command per-line doesn't work? It should...
Michael:
--- Quote from: mandrav on March 31, 2006, 03:56:36 pm ---
--- Quote ---How can I specify more commands?
--- End quote ---
Hmm, one command per-line doesn't work? It should...
--- End quote ---
Yes, it works :). Thank you very much. I have just taken out the && and put each command in a new line and re-build. I got the files :).
Best wishes,
Michael
Navigation
[0] Message Index
Go to full version