---
name: "create_makefiles"
section: "1"
platform: "linux"
package: "kde-dev-scripts"
version: "26.08.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/create_makefiles"
---

# create\_makefiles(1)

Recreates all Makefiles beneath a directory

## NAME

create\_makefiles - Recreates all Makefiles beneath a directory

## SYNOPSIS

**create\_makefiles** \[*dir*\]

## DESCRIPTION

**create\_makefiles** recreates all Makefiles in *dir* and its (recursed) subdirectories from the corresponding Makefile.am templates.

This script must be run from the toplevel directory (the one containing configure). This script saves time compared to re-running configure completely.

If the source directory is different from the build directory (see the environment variables below), it will be assumed that each Makefile.am and Makefile.in belongs beneath the source directory and that each Makefile belongs beneath the build directory.

This utility is part of the KDE Software Development Kit.

## ENVIRONMENT

One of the following variables (but not both) should be set if the source directory is different from the build directory. If the build directory is simply a subdirectory of the source directory, the simpler variable **OBJ\_SUBDIR** should be used.

**OBJ\_SUBJDIR**

Indicates that the build directory is in the given subdirectory of the source directory. For instance, if the source directory is kdesdk and the build directory is kdesdk/obj-i386-linux, then **OBJ\_SUBDIR** should be set to *obj-i386-linux*.

**OBJ\_REPLACEMENT**

A **sed** expression that is used to transform the source directory into the build directory. For instance, if the source directory is kdesdk/obj-i386-linux, then **OBJ\_REPLACEMENT** should be set to *s#kdesdk#kdesdk-obj#*.

## SEE ALSO

[create\_makefile(1)](/create_makefile/1.md) make(2)

## AUTHORS

**create\_makefiles** was written by David Faure \<faure@kde.org\>.

This manual page was prepared by Ben Burton \<bab@debian.org\> for the Debian GNU/Linux system (but may be used by others).
