CREATE_MAKEFILE/(1)

πŸ“¦
version 26.08.2 Β· 2 versions
  • 26.08.2 Β· arch rolling, debian bookworm, debian trixie, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 26.04.2 Β· alpine 3.24
, in arch rolling, debian bookworm, debian trixie, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– CREATE_MAKEFILE/(1) πŸ’–

okay so bestie, welcome to the create_makefile page from the [FIXME: manual] manual β€” yes the manual name is literally bracketed FIXME, we love a work-in-progress icon ✨


✨ NAME ✨

create_makefile β€” it creates Makefile.in and Makefile from a Makefile.am. that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

create_makefile [relativepath/Makefile] [relativepath]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so create_makefile makes the Makefile.in and Makefile in a subdirectory that's got a Makefile.am in it. the whole point? it saves you so much time compared to re-running configure all the way from scratch. no cap. ⏱️✨

heads up bestie β€” you must supply the path to the Makefile/Makefile.am you want (though you can totally drop the final /Makefile if you want, it's chill).

you can run this script from the toplevel directory (the one with configure in it) or from any of its subdirectories. flexible queen. πŸ’…

if the source directory is different from the build directory (peep the environment variables below for that whole situation), it just assumes that the Makefile.am and Makefile.in live beneath the source directory and that the Makefile lives beneath the build... I mean build directory. 🫢

this utility is part of the KDE Software Development Kit. iconic. πŸ‘‘


🌈 ENVIRONMENT 🌈

one of these variables (but NOT both, pick a lane bestie) should be set if your source directory is different from your build directory. and if the build directory is simply a subdirectory of the source directory, use the simpler variable OBJ_SUBDIR instead. πŸ“

  • OBJ_SUBJDIR β€” says that the build directory is inside 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 used to transform the source directory into the build directory. for instance, if the source directory is ~/src/kdesdk and the build directory is ~/src/kdesdk-obj, then OBJ_REPLACEMENT should be set to s#kdesdk#kdesdk-obj#. ✨

πŸ”₯ SEE ALSO πŸ”₯

create_makefiles(1) β€” go read that one too, iykyk 😌


πŸ’œ AUTHORS πŸ’œ

create_makefile was written by David Faure <faure@kde.org> and others. slay.

this manual page was prepared by Ben Burton <bab@debian.org> for the Debian GNU/Linux system (but it may be used by others β€” generous king 🌈).


and that's the tea 🍡 β€” this page came from [FIXME: source] and it's dated 2003-03-08, so it's vintage but it still ate πŸ’…βœ¨ mwah, love u, go make some Makefiles πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from