An open API service indexing awesome lists of open source software.

https://github.com/jeebuscrossaint/constrict

A custom build system and syntax for me, a replacement for make.
https://github.com/jeebuscrossaint/constrict

Last synced: about 1 year ago
JSON representation

A custom build system and syntax for me, a replacement for make.

Awesome Lists containing this project

README

          

# constrict

-----

## about

Constrict is a custom build system I wrote for myself [think of cmake, gmake, that sort of thing] and isn't really meant for the general public, but it has about the most k.i.s.s syntax as possible.

## build

All you need is the go compiler installed of course lol, `go build constrict.go` and then you have it!

## syntax

Syntax documentation. Basically the only docs.

### variables

Variables go up top, cannot double apply variables unless you pass the ! into its name.
```
x = 1
!x = y
y = main.c
obj = main.o
```

### functions

Functions are declared through an all caps word. Like `CLEAN` or `INSTALL`.
There is one reserved function, called `DEFAULT`. It is the default function run when constrict is run.

```
DEFAULT
echo "constrict, is named because it sounds close to construct, and constructing stuff is kind of like compiling."

CLEAN
rm $(obj)
```

## todo

I will try to add incremental building.

#### naming

Constrict, is named because it sounds close to construct, and constructing stuff is kind of like compiling a program. Also it sounded snakey. I would've said it reminds me of golang but I think the Go language logo is like a blue beaver or something. Thanks for reading, this wasn't a big project just something for myself since I had enough of writing makefiles.