Skip to main content

Questions tagged [gnu-make]

GNU Make is the GNU project's implementation of the `make` utility. On BSD systems, the GNU Make executable is sometimes called `gmake` to differentiate it from BSD Make.

1 vote
1 answer
61 views

How to join strings without implicit space?

I'm trying to organize a Makefile with complex commands into something more readable. I'm trying to break down a long list of parameters, but even single parameters are too bad, hence I wanted to ...
gcb's user avatar
  • 428
0 votes
1 answer
72 views

what is the difference between 'Recursively Expanded Variable Assignment' and 'Simply Expanded Variable Assignment' in Makefile?

I am confused about the difference between them. I have read the GNU documentation, but I am still confused. The value you specify is installed verbatim; if it contains references to other variables, ...
lcWhhx's user avatar
  • 33
-1 votes
1 answer
185 views

Why is there such error of "arm-linux-gcc: not found"?

For building u-boot of my board, I followed below two commands as told: $ sudo make nanopi_h3_defconfig ARCH=arm CROSS_COMPILE=arm-linux- $ sudo make ARCH=arm CROSS_COMPILE=arm-linux- I got the ...
Stan Huang at Taiwan's user avatar
1 vote
0 answers
311 views

log output (stdout) from within make file

How do I send the output (stdout) to a log file from WITHIN the make file? I am NOT interested in a command line solution such as "make > build.log". Listed below is my generic make file. ...
jwzumwalt's user avatar
  • 269
0 votes
0 answers
96 views

Makefile and pid files

I have some convenience rules in a Makefile that depends on pid files, but sometimes the pid files are there when the processes aren't. What's a good pattern to work around this in make? For example, ...
gcb's user avatar
  • 428
0 votes
1 answer
100 views

Make does not rebuild transitive dependencies of pattern rules on change, why?

I have a Makefile, roughly so: .PRECIOUS: %.a %.b %.c %.a: touch $@ %.b: %.a touch $@ %.c: %.b touch $@ If I create "test.c" with a make test.c, all the 3 files (...
peterh's user avatar
  • 9,848
0 votes
0 answers
377 views

Correctly run interactive command through Makefile

I have a bespoke interactive command (a "repl") which needs a series of build steps to be performed beforehand. Makefiles are a very good fit for this particular build process, because of ...
deprecated's user avatar
  • 2,371
2 votes
1 answer
898 views

Installing new version of gnu make without compiling on Linux Lite

I'm on Linux Lite 5.8. The installed version of gnu make is 4.2.1 but the latest gnu make version is 4.4.1. Is there a simple way to install this latest version without it being to compile from source?...
AntonioCS's user avatar
  • 121
0 votes
0 answers
68 views

makefile error "error checking context: 'no permission to read from" when file is not readable

I'm running into an error of: make deploy_test error checking context: 'no permission to read from '.../ssh-priv-key''. make: *** [Makefile:24: build_deploy] Error 1 This ssh-priv-key file is ...
Chris Stryczynski's user avatar
0 votes
1 answer
1k views

Including cURL in makefile

I'm using curl in my code and running through Makefile. but while running with "make" command its giving error like "curl/curl.h: No such file or directory". Here below is my ...
nima's user avatar
  • 1
1 vote
1 answer
276 views

How do I use a shell assignment in a makefile so that it works with both FreeBSD make (bmake) and macOS make (GNU Make 3.81)?

I'd like to use the shell assignment operator (i.e., !=) in a makefile that is going to be executed on FreeBSD, macOS, and Linux. Here's an example: a!= seq 3 .PHONY: all all: $a .PHONY: $a $a: ...
Mateusz Piotrowski's user avatar
0 votes
1 answer
2k views

Invoking "make -j16 -l16" failed

I want to simulate Tiago robot in Gazebo and I am using ROS available package. Before, I simulated it without problem but right now I can not. I am using ROS melodic and ubuntu 18.04 on KVM virtual ...
Pouyan's user avatar
  • 13
3 votes
1 answer
503 views

Remake included makefile only when needed

Let's say that I have a Makefile that has two “main” targets: foo.o and clean. The former one has a recipe to create the foo.o file. The latter one removes all the temporary files. To remove the need ...
jiwopene's user avatar
  • 1,071
1 vote
1 answer
1k views

Serialize all rules in GNU make: best practise?

I have a makefile and want to make sure that all the rules are executed sequentially, that is, that no parallel execution is performed. I believe I have three ways of achieving this: With ....
Clément's user avatar
  • 378
17 votes
1 answer
8k views

Why is echo -e behaving weird in a Makefile?

I was writing a Makefile (on Ubuntu 20.04, if it's relevant) and noticed some interesting behavior with echo. Take this simple Makefile: test.txt: @echo -e 'hello\nworld' @echo -e '...
Dominick Pastore's user avatar

15 30 50 per page
1
2 3 4 5
8