Simplified makefile by replacing gcc jobs with compile
This commit is contained in:
parent
6c172792d3
commit
4e375151df
51
Makefile
51
Makefile
|
@ -4,8 +4,9 @@ TAG ?= adtools-build
|
||||||
WORKSPACE ?= -w /opt/adtools
|
WORKSPACE ?= -w /opt/adtools
|
||||||
NAME ?= adtools-build
|
NAME ?= adtools-build
|
||||||
VOLUMES ?= -v "${PWD}/native-gcc":/gcc
|
VOLUMES ?= -v "${PWD}/native-gcc":/gcc
|
||||||
|
GCC ?= 8
|
||||||
|
|
||||||
.PHONY: help build buildnc shell gcc6 gcc8 gcc10 gcc11 clonerepos pullrepos clean
|
.PHONY: help build buildnc shell compile clonerepos pullrepos clean
|
||||||
|
|
||||||
default: help
|
default: help
|
||||||
|
|
||||||
|
@ -15,18 +16,13 @@ help:
|
||||||
@echo "The available parameters can be seen below:"
|
@echo "The available parameters can be seen below:"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "build - Build the Docker image"
|
@echo "build - Build the Docker image"
|
||||||
@echo "buildnc - Pull the latest repos' code and build the Docker image without"
|
@echo "buildnc - Pull the latest repos' code and build the Docker image"
|
||||||
@echo " using caching"
|
@echo " without using caching"
|
||||||
@echo "shell - Create a container with the latest Docker image and get into it."
|
@echo "shell - Create a container with the latest Docker image and get"
|
||||||
@echo " Not suitable to compile adtools"
|
@echo " into it. Not suitable to compile adtools"
|
||||||
@echo "gcc6 - Create a container with the latest Docker image and get into it"
|
@echo "compile [GCC=x] - Create a container with the latest Docker image and get"
|
||||||
@echo " to compile adtools with GCC 6."
|
@echo " into it to compile adtools with GCC 8 (default) or the"
|
||||||
@echo "gcc8 - Create a container with the latest Docker image and get into it"
|
@echo " defined one by GCC parameter. Possible values 8/9/10/11."
|
||||||
@echo " to compile adtools with GCC 8."
|
|
||||||
@echo "gcc10 - Create a container with the latest Docker image and get into it"
|
|
||||||
@echo " to compile adtools with GCC 10."
|
|
||||||
@echo "gcc11 - Create a container with the latest Docker image and get into it"
|
|
||||||
@echo " to compile adtools with GCC 11."
|
|
||||||
@echo "clonerepos - Clone the necessary repositories under repos folder."
|
@echo "clonerepos - Clone the necessary repositories under repos folder."
|
||||||
@echo "pullrepos - Pull the latest code for the projects under repos folder."
|
@echo "pullrepos - Pull the latest code for the projects under repos folder."
|
||||||
@echo "clean - Remove the docker container, if this still exists."
|
@echo "clean - Remove the docker container, if this still exists."
|
||||||
|
@ -47,33 +43,12 @@ buildnc: pullrepos
|
||||||
shell:
|
shell:
|
||||||
docker run -it --rm --name $(NAME) $(WORKSPACE) $(VOLUMES) $(REPO):$(TAG) /bin/bash
|
docker run -it --rm --name $(NAME) $(WORKSPACE) $(VOLUMES) $(REPO):$(TAG) /bin/bash
|
||||||
|
|
||||||
gcc6:
|
compile:
|
||||||
docker run -it --rm --name $(NAME)-6 $(WORKSPACE) \
|
docker run -it --rm --name $(NAME)-$(GCC) $(WORKSPACE) \
|
||||||
-v "${PWD}/native-gcc/6":/gcc \
|
-v "${PWD}/native-gcc/$(GCC)":/gcc \
|
||||||
-v "${PWD}/files/native-build/makefile-SDK53.34":/opt/adtools/native-build/makefile \
|
-v "${PWD}/files/native-build/makefile-SDK53.34":/opt/adtools/native-build/makefile \
|
||||||
-v "${PWD}/files/gcc-build":/opt/adtools/gcc-build \
|
-v "${PWD}/files/gcc-build":/opt/adtools/gcc-build \
|
||||||
--env-file .env6 $(REPO):$(TAG) /bin/bash
|
--env-file .env$(GCC) $(REPO):$(TAG) /bin/bash
|
||||||
|
|
||||||
gcc8:
|
|
||||||
docker run -it --rm --name $(NAME)-8 $(WORKSPACE) \
|
|
||||||
-v "${PWD}/native-gcc/8":/gcc \
|
|
||||||
-v "${PWD}/files/native-build/makefile-SDK53.34":/opt/adtools/native-build/makefile \
|
|
||||||
-v "${PWD}/files/gcc-build":/opt/adtools/gcc-build \
|
|
||||||
--env-file .env8 $(REPO):$(TAG) /bin/bash
|
|
||||||
|
|
||||||
gcc10:
|
|
||||||
docker run -it --rm --name $(NAME)-10 $(WORKSPACE) \
|
|
||||||
-v "${PWD}/native-gcc/10":/gcc \
|
|
||||||
-v "${PWD}/files/native-build/makefile-SDK53.34":/opt/adtools/native-build/makefile \
|
|
||||||
-v "${PWD}/files/gcc-build":/opt/adtools/gcc-build \
|
|
||||||
--env-file .env10 $(REPO):$(TAG) /bin/bash
|
|
||||||
|
|
||||||
gcc11:
|
|
||||||
docker run -it --rm --name $(NAME)-11 $(WORKSPACE) \
|
|
||||||
-v "${PWD}/native-gcc/11":/gcc \
|
|
||||||
-v "${PWD}/files/native-build/makefile-SDK53.34":/opt/adtools/native-build/makefile \
|
|
||||||
-v "${PWD}/files/gcc-build":/opt/adtools/gcc-build \
|
|
||||||
--env-file .env11 $(REPO):$(TAG) /bin/bash
|
|
||||||
|
|
||||||
clonerepos:
|
clonerepos:
|
||||||
git clone https://github.com/sba1/adtools $(REPOSPATH)/adtools
|
git clone https://github.com/sba1/adtools $(REPOSPATH)/adtools
|
||||||
|
|
Loading…
Reference in New Issue