New answers tagged

1 vote
Accepted

Remake included makefile only when needed

The solution is quite simple, but results into somewhat unreadable Makefile code. First, we must know that include directive tries to include the file, and if it does not exist, fails. There is also -...
user avatar
  • 772
3 votes
Accepted

Makefile subshell if condition

There is no grep function in the make. But you can call the external binary by using function shell: .PHONY: test test: ifeq ($(shell grep -Fxq "substring" ./file.txt && echo 1 || ...
user avatar
  • 1,163
1 vote
Accepted

Serialize all rules in GNU make: best practise?

Yes, this is overkill. As far as the three options go: You should never set MAKEFLAGS, for two reasons: it will cause issues with any flags passed on the command-line, and MAKEFLAGS doesn’t work in a ...
user avatar
1 vote
Accepted

binaries not executable by user (Permission denied) after cmake install / make install to /usr/local/bin

The problem is this: drwx------ 2 root root 4096 May 5 14:21 /usr/local/bin group and others have no execute and read permission on /usr/local/bin. Run as root: chmod 755 /usr/local/bin to restore ...
user avatar
  • 6,155
0 votes

Modify filenames in Makefile

i suggest to create a copy of the entire source tree then modify the files in the copy directory without renaming them. that way you don't need to modify the makefile. and as bonus you can have an ...
user avatar
  • 25.2k
1 vote
Accepted

Trouble installing GS from source

To have the compiler pick up math.h, I added -std=c99 to LCMS2_CFLAGS in the main Makefile once configure finished: LCMS2_CFLAGS=-DSHARE_LCMS=$(SHARE_LCMS) -std=c99
user avatar

Top 50 recent answers are included