.Dd Created:$Mdocdate$ .Dt ohazot_make .Tg back_to_top .Bd -literal -compact _ _ ___ | |__ __ _ _______ | |_ / _ \\| '_ \\ / _` |_ / _ \\| __| | (_) | | | | (_| |/ / (_) | |_ \\___/|_| |_|\\__,_/___\\___/ \\__| .Ed .Tg menu .Bl -column ".Sy ohazot " ".Sy ohazot " ".Sy ohazot " .It Xr ohazot oh Ta | .Xr docs oh Ta | .Xr about oh Ta .El .Dd Created:2025-10-03|Updated:2025-10-06 .Dt ohazot_make .Os OpenBSD linux .Nm make .Nd using OpenBSD make .Sh SYNOPSIS .Sx back_to_top .Cm make .Op Fl f Ar MAKEFILE .Bl -diag -compact .It use bmake on linux. .El .Sh DEFAULTS .Sx back_to_top .Bl -tag -compact .It makefile if no makefile is specified with -f makefile it defaults to makefile, Makefile. .It target defaults to the first defined target, unless .MAIN: is specified. .It echo it echoes the command unless the command is called @command. .It errors exits on error unless ignored by calling -command. .El .Sh MODIFIERS .Sx back_to_top .Bl -column -offset indent ".Sy option " ".Sy description " .It :S Ta : Substitute string :S/old/new/ .It :C Ta : Substitute regex :C/pattern/replacement .El .Sh USAGE .Sx back_to_top .Bd -literal -compact target: commands .MAIN: [MAIN_TARGET] target! #run even when up-to-date target: prereq target1 target2: @echo "this only displays this text but not the command itself." -cat /tmp/file_that_does_not_exist .END: [TARGET_RUN_ON_SUCCESS_AT_THE_END] .BEGIN: [TARGET_RUN_AT_BEGINNING] VAR=something VAR_RES!=command result VAR_SUB=${VAR:S/STRING/REP/} VAR_REGSUB=${VAR:C/REGEX/REP/} target_show: echo 'target name: ' ${@} .Ed .Sh EXAMPLE .Sx back_to_top .Bd -literal -compact t2: -cat Makefile t1: t2 cat makefile makefile t3! echo ${@} t4_t5: @echo 'target: ' ${@} @echo 'change t5 to t6: ' ${@:S/t5/t6/} @echo 't4: ' ${@:C/_.*$//} @echo 't5: ' ${@:C/^.*_//} .MAIN: t1 .Ed .Sh TODO .Sx back_to_top .Bl -bullet -compact .It Improve document. .El .Sh SEE ALSO .Sx back_to_top .Ss OpenBSD manpages .Xr make 1 .Ss ArchLinux manpages .Bl -bullet -compact .It .Lk https://man.archlinux.org/man/bmake.1 ArchLinux manpages - OpenBSD make (bmake) .El .Ss files .In make.oh .Sh AUTHORS .Sx back_to_top .An -nosplit .Xr ohazot oh | .Xr about oh | .Lk https://ohazot.com ohazot.com .Aq Mt admin@ohazot.com