diff --git a/README b/README index 8c686cd..96e2562 100644 --- a/README +++ b/README @@ -8,15 +8,26 @@ you may see a real example in the primary and only source file: `baked.c'. this is not targeted toward any language and should be fairly flexible, especially when multi-line comments are available. +Buildng + Initial building may be done by examining and running `install.sh', if you don't want to install it right away, run `SUDO= TARGET=. ./install.sh' -Name/arg extension: +Name/Arg extension $@: the name of the executed file $*: the text of the filename before the last dot $+: the remaining arguments to baked +Options extension + +only one option may be in use at a time, and must come as the first argument. + +-h: displays help message, similiarly to empty input. +-n: DRYRUN, does NOT run anything! + +Notes + baked was inspired by Shake (formerly eMake), written by anon, which you may view at diff --git a/baked.c b/baked.c index 297f6ac..4ee8c1a 100644 --- a/baked.c +++ b/baked.c @@ -1,4 +1,16 @@ -/* EXEC:cc $@ -o $* -std=gnu89 -O2 -Wall -Wextra -Wpedantic -pipe $CFLAGS:STOP */ +/* baked.c - Ever burned a cake? + Copyright 2023 Emil Williams + + Licensed under the GNU Public License version 3 only, see LICENSE. + + EXEC:cc $@ -o $* -std=gnu89 -O2 -Wall -Wextra -Wpedantic -pipe $CFLAGS:STOP + @COMPILECMD cc $@ -o $* -std=gnu89 -O2 -Wall -Wextra -Wpedantic -pipe $CFLAGS + + TODO + + 1. Possibly trim whitespace from before and after the buffer (no realloc), and + make sure single lined commands are not wrapped. (BLOAT) + */ #include #include