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.
1,022 questions
1 vote
1 answer
39 views
Do I need to define an absolute path to be able to compile the DRM / Panfrost subtree code of JSM on the RockPro64 / Khadas Edge-V / RK3399?
I'm trying to compile the drm-subtree of JSM because I want to enable the panfrost driver on the RockPro64 / KHADAS EDGE-V / RK3399. The code is here: https://github.com/jsm222/drm-subtree He improved ...
2 votes
1 answer
331 views
How to get multiple pattern rule %/$* variables in a Makefile?
All we get in Makefiles is just one %/$* pattern rule pair. $ cat Makefile %.bla:; echo $* $ make -s m.bla m How shortsighted of our Unix™ fathers. How can I achieve something like %{0}.%{1}.bla that ...
0 votes
2 answers
126 views
Can I somehow include a sub-Makefile without creating an impicit rule for it?
Honestly, I want to control, when is this sub-make rebuilt. To my largest surprise, any time if I use an include generated.sub.Makefile, it also tries to rebuild-it and then re-read my whole Makefile ...
1 vote
2 answers
505 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/(^...
0 votes
3 answers
135 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. ...
0 votes
0 answers
32 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 -...
3 votes
1 answer
907 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 ...
0 votes
0 answers
29 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-...