MKC_CHECK_CUSTOM(1)
π NAME π
okay bestie, welcome to the MKC_CHECK_CUSTOM(1) page β this one is literally about running your own custom checks, and itβs giving main-character build-system energy β¨
mkc_check_custom β run userβs custom checks. periodt π
β¨ SYNOPSIS β¨
mkc_check_custom [-r] sourcefile
mkc_check_custom cmd [args...]
mkc_check_custom -h
π¦ DESCRIPTION π¦
If cmd is executable, mkc_check_custom runs cmd args. No cap.
Otherwise it tries to compile sourcefile and output 1 if compilation succeeded and 0 otherwise. Lowkey iconic behavior.
If the -r option was applied, it runs a compiled program. πββοΈπ¨
What type of compiler to use depends on the sourcefile extension, iykyk:
.ccorresponds to${CC}(C language).cc,.cxx,.Cand.cppcorrespond to${CXX}(C++ language)
πΈ OPTIONS πΈ
-hβ Display help message. ur little helper bestie π«Ά-rβ Run executable compiled fromsourcefile.-p textβ Prefix of the generated cache file. The default is"custom".-n textβ Name part of the generated cache file. The default isbasename <sourcefile>.-m textβ Messagemkc_check_customoutputs. The default is"custom test sourcefile_or_cmd".-sβmkc_check_customoutputs an exit status ofcmd args.-dβ Delete cache and temporary files.-Dβ Delete cache files.-eβ Print0if compiler/cmd print something to stderr.-bβ Print yes/no instead of 1/0.
π ENVIRONMENT π
CCβ C compilerCXXβ C++ compilerCPPFLAGSβ Preprocessor flags for C and C++CFLAGSβ Compilation flags for CCXXFLAGSβ Compilation flags for C++LDFLAGSβ Additional linker flagsLDADDβ Additional objectsMKC_VERBOSEβ If set to1, verbose messages are output to stderr.MKC_SHOW_CACHEDβ If set to1andMKC_VERBOSEis set to1, cached results are output to stderr.MKC_CACHEDIRβ Directory where temporary and cache files are created. If unset they are created in a current directory.MKC_NOCACHEβ All results are cached unlessMKC_NOCACHEvariable is set to1.MKC_DELETE_TMPFILESβ If set to1, temporary files are removed.
π EXAMPLES π
mkc_check_custom alloca_in_stdlib.c
mkc_check_custom custom_checks/cxx_foo_test.cc
mkc_check_custom /full/path/to/yacc_need_liby
π AUTHOR π
Aleksey Cheusov <vle@gmx.net>
Thatβs the whole MKC_CHECK_CUSTOM(1) page, dated Dec 2, 2023 β go run your custom checks, bestie π
π«Άπ
π¦ where this page comes from
- alpine 3.24: mk-configure-doc 0.40.0-r1 Β· BSD-2-Clause
- arch rolling: mk-configure 0.40.3-1 Β· BSD
- opensuse-leap 16.0: mk-configure 0.39.3-bp160.1.12 Β· BSD-2-Clause AND MIT AND ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms