Linux Commands Examples

A great documentation place for Linux commands


framework for writing simple makefiles for complex tasks

see also : make



add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


NAMES=`kmk_sed -e '/EXPERIMENT_PURE/!d' -e '/^#/d' -e 's/^[^()]*([^()]*)[[:space:]]*\([^() ]*\)(.*$/\1/' ${HEADER}.bak `
# baseline
kmk_sed -e 's/EXPERIMENT_PURE//' ${HEADER}.bak --output ${HEADER}
read buf # ignore
read buf; baseline_r0=`echo $buf | kmk_sed -e 's/^[[:space:]]*\([^[[:space:]]*\).*$/\1/' `


kmk and its helper tools are an extension to GNU make to ease writing portable Makefile.

The goals of the kBuild framework:

- Similar behavior cross all supported platforms.
- Flexibility, don’t create unnecessary restrictions preventing ad-hoc solutions.
- Makefile can very simple to write and maintain.

There are four concepts being tried out in the current kBuild incaration:

- One configuration file for a subtree automatically included.
- Target configuration templates as the primary mechanism for makefile simplification.
- Tools and SDKs for helping out the templates with flexibility.
- Non-recursive makefile method by using sub-makefiles.

kBuild does not provide any facilities for checking compiler/library/header configurations, that’s not in its scope. If this is important for your project, check out the autoconf tool in the GNU build system. It is possible to use kBuild together with autoconf if you like, but you might just as well use the full GNU package.

On Debian systems, the kBuild binaries can be found in /usr/bin and its data files in /usr/share/kBuild.


More information about kBuild project can be found at <>.

see also



kBuild was written by Knut St. Osmundsen <bird-kBuild-spam[:at:]anduin[:dot:]net>.

This manual page was written by Daniel Baumann <daniel[:at:]debian[:dot:]org>, for the Debian project (but may be used by others).

How can this site be more helpful to YOU ?

give  feedback