From a95060097772b17fb6996b6439a7e5da8b662bc3 Mon Sep 17 00:00:00 2001 From: czjstmax Date: Wed, 6 May 2026 17:00:31 +0200 Subject: removed old build script, added proper Makefile, updated REDAME Signed-off-by: czjstmax --- Makefile | 11 +++++++++++ README.md | 2 +- build.sh | 23 ----------------------- 3 files changed, 12 insertions(+), 24 deletions(-) create mode 100644 Makefile delete mode 100755 build.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..aa8ec56 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +CC = gcc +OPTS = -Wall -Wextra -pedantic +FIN = g.c +FOUT = g + +all: + $(CC) $(OPTS) $(FIN) -o $(FOUT) + +clean: + rm -v $(FOUT) + diff --git a/README.md b/README.md index 0444e78..78cb314 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ if you are as lazy as me and do not want write **looong** and **boring** commands like \ `git commit -a -m "yo mama"`, or `git remote add origin git@github.com:torvalds/linux.git` -## project_status = unfinished/development_slow_as_hellll +## (!) development halted ### why "permissive"? `g`'s whole logic is to be "_permissive_" with its syntax making it \ diff --git a/build.sh b/build.sh deleted file mode 100755 index 7e30d61..0000000 --- a/build.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash - -# compile g -if gcc g.c -o g -O1 -Wall -Wextra -pedantic; then - # move to PATH - if sudo cp ./g /usr/bin/g; then - # remove binary from local repo - if rm ./g; then - # status message - printf ":: done ♥\n" - else - # or kill myself - printf ":: couldnt remove binary from local repo, fuck you ♥\n" - fi - else - # or kill yourself - printf ":: couldnt copy to PATH, fuck you ♥\n" - fi -else -# or kill ourselves - printf ":: couldnt compile, fuck you ♥\n" -fi - -- cgit v1.3.1