skip to Main Content

How to do string subsitution on env var in makefile script – Docker

I have a makefile with the following script: build: DOCKER_BUILDKIT=1 docker build --build-arg GITHUB_ACTOR=${GITHUB_ACTOR} --build-arg GITHUB_TOKEN=${GITHUB_TOKEN} -t ${DOCKER_REGISTRY}/strick:${IMAGE_BRANCH}-${IMAGE_TAG} -t ${DOCKER_REGISTRY}/strick:${IMAGE_BRANCH}-latest . and I just realized that when ${IMAGE_BRANCH] has a slash in it, like feature/a-b-c then the docker build step…

VIEW QUESTION

How can I build on ubuntu something that was meant for FreeBSD?

I'm trying to build this: https://github.com/hselasky/hpsat_generate this is their makefile: PROG_CXX=hpsat_generate PREFIX?=/usr/local MAN= SRCS= hpsat_generate.cpp BINDIR?=${PREFIX}/bin .if defined(HAVE_DEBUG) CFLAGS+= -g -O0 .endif CFLAGS+= -I${PREFIX}/include LDFLAGS+= -L${PREFIX}/lib -lgmp -lgmpxx .include <bsd.prog.mk> using just make . results in Makefile:7: *** missing separator.…

VIEW QUESTION
Back To Top
Search