-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (32 loc) · 847 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
IMG_NAME=bandnoticeboard/forestmq:0.6.0
build:
mkdir build
cmake -S . -B build
cd build
make
# Development requirements
# This will install all the required development libraries on a Mac.
install_deps_mac:
brew install check
brew install cmocka
brew install doxygen
brew install jansson
brew install libevent
install_deps_linux:
sudo apt install -y libjansson-dev
sudo apt install -y libsystemd-dev
sudo apt install -y libevent-dev
docs_init:
doxygen -g Doxyfile
docker-build-mac:
docker build --tag $(IMG_NAME) .
docker-build-linux:
export DOCKER_DEFAULT_PLATFORM=linux/amd64 && docker build --tag $(IMG_NAME) .
docker-run:
docker run -p 8005:8005 $(IMG_NAME)
docker-push:
docker push $(IMG_NAME)
docker-remove:
docker rmi $(IMG_NAME) --force
docker_img_exec:
docker run --rm -it --entrypoint /bin/bash $(IMG_NAME)