Sign inSign up

bdockerimg/bmakelib

By bdockerimg

Updated almost 2 years ago

🖼 Lightweight images of bmakelib and GNU Make 4.4

Image
4

7.4K

bdockerimg/bmakelib repository overview

🖼 bdockerimg/bmakelib

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

Variants

There are two main variants base on Make 4.4.x:

  • openSUSE Tumbleweed
  • Ubuntu 22.04 (LTS)

👉 See the full list: https://hub.docker.com/r/bdockerimg/bmakelib/tags

See Also

✔️ All bdockerimg images on Docker Hub: https://hub.docker.com/u/bdockerimg

✔️ bdockerimg on github: https://github.com/bahmanm/bdockerimg

Tag summary

Content type

Image

Digest

sha256:9c5b26fd9

Size

154.2 MB

Last updated

almost 2 years ago

docker pull bdockerimg/bmakelib