🖼 Lightweight images of bmakelib and GNU Make 4.4
7.4K
A lightweight image of bmakelib and GNU Make 4.4.
$ cat Makefile
include bmakelib/bmakelib.mk
binary := build/simple
build/ :
mkdir -p $(@)
.PHONY : build
build : $(binary)
$(binary) : bmakelib.default-if-blank( CC,gcc )
$(binary) : main.c | build/
$(CC) -o $(@) $(<)
.PHONY : run
run : build
@$(binary)
.PHONY : clean
clean :
-rm -rf build/
$ cat main.c
#include <stdio.h>
int main(void) {
printf("Hello, world\n");
return 0;
}
$ docker run --rm --volume .:/project bdockerimg/bmakelib run
mkdir -p build/
cc -o build/simple main.c
Hello, world
There are two main variants base on Make 4.4.x:
👉 See the full list: https://hub.docker.com/r/bdockerimg/bmakelib/tags
✔️ All bdockerimg images on Docker Hub: https://hub.docker.com/u/bdockerimg
✔️ bdockerimg on github: https://github.com/bahmanm/bdockerimg
Content type
Image
Digest
sha256:9c5b26fd9…
Size
154.2 MB
Last updated
almost 2 years ago
docker pull bdockerimg/bmakelib