Skip to content

Latest commit

 

History

History
49 lines (44 loc) · 771 Bytes

README.md

File metadata and controls

49 lines (44 loc) · 771 Bytes

Bull Shit Build System

Minimal Build System implemented in C.

DEF Log = Verbose
DEF CC = gcc
DEF CFLAGS = -Wall -Wextra
DEF BUILD_NAME = bsbs

LABEL build {
    RUN $CC main.c -o $BUILD_NAME $CFLAGS
}

LABEL hello {
    RUN $CC hello.c -o hello $CFLAGS
    RUN ./hello
    RUN rm -r hello
}

Quick Start

  • Build the project
gcc main.c -Wall -Wextra -o bsbs
  • Build the example file 'hello'
./bsbs hello
+ CC = gcc
+ CFLAGS = -Wall -Wextra
+ BUILD_NAME = hello
+ gcc hello.c -o hello -Wall -Wextra
+ ./hello
Hello moto
+ rm -r hello
  • Build the project but using bsbs.
./bsbs build
+ CC = gcc
+ CFLAGS = -Wall -Wextra
+ BUILD_NAME = hello
+ gcc main.c -o hello -Wall -Wextra