0

I am trying to run a Makefile in the Ubuntu terminal. In the first line, it has the following code:

BINDIR=$(HOME)/bin/$(ARCH)

In this case, what does it mean the variable $(ARCH)?

I am trying to change the BINDIR path to my current directory (i.e BINDIR= $(HOME)/name/folder/$(ARCH)), and executing the Makefile as:

./Makefile

But I am getting the following errors in the terminal:

Makefile: line 1: HOME: command not found ./Makefile: line 1: ARCH: command not found ./Makefile: line 4: all:: command not found mmand not found ./Makefile: line 4: all:: command not found

Could someone help me?

Thanks in advance!

  • That's make syntax, not shell syntax. You can't run it with a shell, you have to run it with `make`. Just run `make` in the same directory. – Charles Duffy Sep 19 '22 at 20:45

0 Answers0