commit 5133045b311cab59b6ca71f0153f8fad15413dcc
parent fc3d0a2e69cdc5c84d86637e98151f040589c84c
Author: vx-clutch <[email protected]>
Date: Wed, 14 Jan 2026 21:51:55 -0500
add comments and remove left over from reference makefile
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/bin/yait b/bin/yait
@@ -1,7 +1,7 @@
#! /bin/sh
# Highly opinionated C and SH project generator
-scriptversion="0.2.1"
+scriptversion="0.3.0"
#
# Copyright (C) 2025-2026 fSD THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
@@ -53,6 +53,7 @@ lsay() {
fi
}
+# main creation routine
create_project() {
name=$1
@@ -61,6 +62,7 @@ create_project() {
exit 1
fi
+ # creates a shell project
shell() {
outfile="$name"
@@ -199,6 +201,7 @@ EOF
chmod +x "$outfile"
}
+ # creates a C project
c() {
if [ -d "$name" ]; then
if ! [ -z "$f" ]; then
@@ -275,7 +278,7 @@ all: $name
config.h:
cp config.def.h \$@
-dwm: \${OBJ}
+$name: \${OBJ}
\${CC} -o \$@ \${OBJ} \${LDFLAGS}
clean: