Hey Prime,
I have a collection of related (text mode, command line) apps that II maintain in Lazarus.
A makefile is good for languages that do not have a project aggregate file. Most C/C++ compilers do not have the equivalent of the
*.lpi file.
I'm assuming you have one of those per project folder, since you mention that you maintain them under Lazarus.
My advice would be to have a batch file and a shell script on the root folder that contains all the project folders.
I'll give an example of the shell script, since I'm utter crap at batch files:
#!/bin/bash
lazbuild -B --bm=Release Prog1/prog1.lpi
lazbuild -B --bm=Release Prog2/prog2.lpi
lazbuild -B --bm=Release Lib1/lib1.lpi
I'm including the
--bm=Release in case you have the Release Build Mode, if not just delete that part.
The wonderful thing about
lazbuild is that it compiles your projects just like it's big brother Lazarus would.
And since the
*.lpi file for
lazbuild is the equivalent of the
Makefile for
make, why even use
make?
Just my 2c.
Cheers,
Gus