Skip to main content

Questions tagged [make]

For questions pertaining to make, a utility that automates the build process by managing dependencies amongst targets. Use this tag for questions about make itself or questions about issues arising from using the make command-line utility.

0 votes
1 answer
35 views

Need to ensure a certain binary is built early and excluded from clean

Trying to run this code in my Makefile: MAKEFLAGS+=--no-buildin-rules MAKEVARIABLES+=--no-builtin-variables fixClean: dissoc.c echo "Inside fixClean" ${CC} $<.c ${CFLAGS} ${LIBS} -...
Nibal's user avatar
  • 11
1 vote
2 answers
388 views

sed in makefile is not working as expected when using regex

Got a makefile whith this command which convert folder names on ./cmd/ from snake_case to PascalCase test: @for f in $(shell ls ./cmd/); do \ echo $${f}; \ echo $${f} | sed -r 's/(^...
Ricardo Albear's user avatar
1 vote
2 answers
54 views

Can I use a flexible (either or) prerequisite in GNU make?

Is it possible to have a flexible extension for a prerequisite? For example, let's say I want to apply a rule to a list of targets that all have the same prerequisite pattern, except that some of them ...
user2165907's user avatar
0 votes
3 answers
62 views

Does CMake/make have the ability to make my Linux operating system unstable?

30 years ago, I've started C++. Mostly under DOS, Windows 3.1 and 95. I've wrote some for 10 years. Then Java replaced it at work, for about 20 years. Now C++ in coming back in the front of the scene. ...
Marc Le Bihan's user avatar
1 vote
0 answers
36 views

Cannot compile kernel modules on TrueNAS Scale

I have a Ugreen DXP 6800 Pro and the OS disk died. No actual NAS data was lost but I cannot figure out how to get the OS back to the same state. I was previously able to compile modules and add them ...
lmnop's user avatar
  • 11
0 votes
0 answers
30 views

Why doesn't `rm -f *.{log,pdf,bbl,blg,aux}` work in a Makefile? How to repair? [duplicate]

In someone's Makefile, I saw clean: rm -f *.{log,pdf,bbl,blg,aux} Upon running make clean, all the files were still there as before; nothing was removed. So what's the analogon of a shell's rm -...
AlMa1r's user avatar
  • 260
0 votes
1 answer
35 views

Does a .h file for external kernel modules need compilation in another, particular manner?

I have an external kernel module and a Makefile. I was using Kbuild but decided to go with a straight Makefile and make. I have my headers installed, build-essential and kmod installed, and I am ...
Mala Dies's user avatar
3 votes
1 answer
405 views

Using make variable in bash scripting as part of a makefile command

I've created a makefile command to automate a publishing workflow using Pandoc and the Generic Preprocessor (GPP). It is as follows: TODAY = $(shell date +'%Y%m%d-%H%M') MACROS = utils/gpp/macros.md ...
Khalid Hussain's user avatar
-1 votes
2 answers
395 views

make menuconfig fails while working on busybox only

I was following the guide here and when I tried running make menuconfig it said Unable to find the ncurses libraries or the required header files. 'make menuconfig' requires the ncurses libraries. ...
Ligerbot's user avatar
0 votes
0 answers
15 views

MPFR 4.2.1 in Solaris 10 x86_64 gmp.h and libgmp seem to have different versions

I am trying to compile the latest version of GCC to try compiling Modula 3 CM3 but I first have to have versions of GMP, MPFR, and MPC. GMP installs correctly using ./configure --build-x86_64-oracle-...
alex miranda's user avatar
1 vote
1 answer
52 views

GNU `make`, modification times, leap seconds and NTP

GNU make relies on timestamps to see if a dependency was changed after some file was built. If you make a change during the leap second or an NTP adjustment, is it possible that make will believe the ...
Tomek Czajka's user avatar
0 votes
0 answers
34 views

Getting these make command errors while compiling an android kernel

──(root㉿kali)-[~/Documents/kernel-source-alioth-stock] └─# make -j2 CC=clang O=output/ $config make[1]: Entering directory '/root/Documents/kernel-source-alioth-stock/output' .... HOSTLD scripts/...
Sunil Kumar Das's user avatar
1 vote
1 answer
401 views

How to make all targets in the Makefile depend on a specific file?

Here in make I want to make all targets in the whole Makefile depend on a specific file. (That specific file is Makefile in fact, because that's where I have all my formulas. But that's beside the ...
Dan Jacobson's user avatar
0 votes
1 answer
51 views

String replace in wildcard using find command

I want to exclude all C files that have a matching asm file. The assembly files all have _x86_64.S at the end. The C files have identical names, but with .c instead of _x86_64.S at the end. How would ...
Ryan Maguire's user avatar
5 votes
1 answer
230 views

How to make MAKEFLAGS=--warn-undefined-variables apply to current Makefile?

Yes I read Communicating Options to a Sub-'make' but I want to set an option for this make, not a sub-make, and set it within the Makefile, not via the command line. $ cat Makefile MAKEFLAGS = --warn-...
Dan Jacobson's user avatar

15 30 50 per page
1
2 3 4 5
69