Questions tagged [make]

make is a utility that automates the build process by managing dependencies amongst targets.

Filter by
Sorted by
Tagged with
1
vote
1answer
19 views

Makefile commands with external args and internal variables

In a Makefile target I have a list of files that I want to split into x parts and work only with one part y, then pass those file names as argument to a test runner. I have no control over the ...
0
votes
0answers
22 views

changing one compilation of make

Is it possible to change some specific compilation made when executing Make, say by appending some new option for the compiller used for one target? One thing I want to do is to modify options because ...
0
votes
0answers
8 views

Where to install .cls/.sty files?

I am writing the makefile for a program I have written which produces latex output, however, it requires a custom .cls file. Is it best practice to let the user put this file in the correct directory ...
0
votes
1answer
40 views

/lib/ld-linux-armhf.so.3: No such file or directory

I encountered some problems when compiling gutenprint-5.2.9.tar.bz2: ./extract-strings `cat xml-stamp | sed -e 's;^;./;'` > xmli18n-tmp.h.tmp /lib/ld-linux-armhf.so.3: No such file or directory ...
1
vote
1answer
20 views

Errors when trying to build openssl-1.0.2l

Debian 32-bit host PC, with a pre-built toolchain for ARM target in /opt dir. I tried to cross-compile project from the source code, got a lot of errors when system tried to build openssl package: &...
2
votes
0answers
30 views

How to chain multiple automatic responses to make for Linux build?

Currently I have a script capable of selecting the cpu subarchitecture for a Linux build, but selecting native leads to an infinite loop for selecting P6_NOPS Intel cpus. I there anyway to send the ...
1
vote
1answer
18 views

Make error: DSO missing from command line

I am attempting to install rejoystick, and when I run make, I get this: Making all in src make[1]: Entering directory '/home/chrx/Downloads/joystick/rejoystick-0.8.1/src' make[2]: Entering directory '...
0
votes
0answers
23 views

Enable DEVPTS_FS option in Linux kernel 2.6.26.5

Board with embedded Linux kernel version 2.6.26.5, for ARM target. Busybox 1.10.2. How to enable DEVPTS virtual filesystem support in kernel? I tried to find item CONFIG_DEVPTS_FS in config files, but ...
2
votes
1answer
36 views

Tool/script that can expand all 'include' directives in a makefile

Let us say we have the following Makefile include config.mk # Generate summary table. results.txt : $(ZIPF_SRC) isles.dat abyss.dat last.dat $(ZIPF_EXE) *.dat > $@ # Count words. .PHONY : ...
0
votes
0answers
35 views

What cause path error occurs during code compiling

Debian 32-bit host PC, with a pre-built toolchain in /opt dir, the target is ARM. I'm trying to build project (f/w image) from source code,there is error during code compilation. The project have ...
0
votes
0answers
33 views

Makes errors in native build Qt installtion

I have trying to build QT5 5.12.3 on Raspberry Pi zero via these site instructions: wget http://download.qt.io/official_releases/qt/5.12/5.12.3/single/qt-everywhere-src-5.12.3.tar.xz tar xf qt-...
0
votes
1answer
29 views

Did the installation fail? (make[2]: Nothing to be done for 'install'.)

I have tried to install Qt Cross compilation for Raspberry zero with my LMDE Linux OS (Lenovo Laptop) based on these instructions, using this script I wrote: #!/bin/bash ./configure -release -...
0
votes
0answers
19 views

Issue trying to compile libXres

I recently tried to build libXres from the source and I am encountering issues when trying to build from two different manners. In the first I run the configure script with: ./configure --prefix=/...
3
votes
2answers
379 views

Makefile for a simple Debian Repo

I'm making a very basic Debian repo for a client. Started with a bash script, but decided a Makefile would eliminate duplicated work. I've hammered out a working Makefile, but it works only if I make ...
0
votes
1answer
25 views

Leptonica compilation error

Trying to install leptonica v1.78 on Ubuntu 16, but it's not working for some reason. After running ./configure and make, I keep getting this error: make[2]: Entering directory '/home/user/Documents/...
0
votes
0answers
34 views

Installing GCC 4.7.0 fails at make command

I'm attempting to install GCC 4.7.0 in Linux Mint (based off of Ubuntu 18.04). I get past the first step of configuring it. However when I run make -j5, I get the following errors: make[2]: Leaving ...
1
vote
1answer
27 views

Why is there no rule to make target needed by another target in my makefile

When I run the makefile at the bottom, I receive the error: make: *** No rule to make target 'xhtml/%.html', needed by 'manifold/01_doehmer_syntax_pre.zip'. Stop. I do not understand this error, ...
0
votes
1answer
24 views

Makefile - Subst - not replacing variable

I am trying to run the following subst command to replace one string /var/jenkins_home with another /srv/jenkins-slave-1/data so that the value in HOST_LOG_DIR changes from /var/jenkins_home/...
2
votes
1answer
122 views

Error “/bin/sh: 1: Syntax error: ”(“ unexpected” in Makefile

I am trying to create a Makefile with two targets: setup and clean. The setup target is supposed to find all the files in the /usr/lib/man-db and copy them to the directory proj/lib. setup: ...
1
vote
3answers
90 views

Makefile - no such file or directory error

I am trying to create a Makefile target which first checks to see if my Docker container exists. If it exists then I want to issue the Docker Container Restart command otherwise I want to issue the ...
0
votes
0answers
20 views

RPM making error from

When I am building drbd-utils-9.5.0 rpms from source offline and I am getting error "No such file or directory" as follows. So how can I build rpms offline resolving the issue ? [root@db1 drbd-...
0
votes
1answer
61 views

What is the logic of using $($(nproc) + 1) in make command?

I was trying to install OpenCV in Ubuntu based on few guides online. One of the guides is this one. It has the following line: make -j $(($(nproc) + 1)) The nproc returns the number of processors/ ...
2
votes
1answer
103 views

Using sed within a makefile

I want to modify the cygwin path to the windows path from within a makefile. For that purpose, I am using CURDIR := `pwd` WINDIR := $(shell echo $(CURDIR) | sed -e "s/\/cygdrive\/\(.\)/\1:/" | sed -e ...
0
votes
0answers
22 views

Why is checkinstall freezing when I try to run “make install” for Ruby 2.5.5?

I'm compiling Ruby 2.5.5 with jemalloc in a Docker container, and I'm trying to build a deb package with the checkinstall tool. Here is the Dockerfile and build script I'm using. Steps to reproduce: ...
0
votes
0answers
9 views

How can I invoke a custom Zsh function compiled into a digest from a Makefile?

I have a custom Zsh function script compiled into a digest (.zwc) file and would like to invoke it from a Makefile after autoloading it. Is this possible?
0
votes
1answer
71 views

Install dependencies for a bash script

I've recently made a bash script that can be downloaded and installed by users via a Makefile. The problem is that I'm not sure how to have dependencies get installed. In this case, the only ...
0
votes
0answers
18 views

Difficulty with pattern rule in Gnu make

I want to write a pattern rule in Gnu make that will make e.g. file foo/XXX/XXX.o depend on file bar/XXX.c. That is, it "expands" to foo/abc/abc.o: bar/abc.c ... foo/def/def.o: bar/def.c ...
1
vote
1answer
47 views

Makefile - How to install a bash script into user's bin directory?

I need to make a Makefile to install a bash script into a user's bin directory, but I'm not sure what the best way of doing this would be. Should I be using a variable that accepts user input to ...
1
vote
1answer
27 views

alternatives to using make as a script runner [closed]

tl;dr make is working for me, but I'm looking for the appropriate tool. I'm currently using Makefiles as script runners for my projects. In order to standardize each project, I just create a makefile ...
0
votes
1answer
31 views

What causes Make to delete intermediate files?

I wrote a Makefile and found out that when executing make command, an unexpected rm was executed, after all command in Mmakefile were done. But I didn't write the rm command in the Makefile. run-%: d/...
0
votes
2answers
160 views

Using Heredoc in a Makefile. Is it Possible?

I'm using Makefile such that the default step is to print out a help document for the other options. It would be great if I could add an EOF section instead of multiple echos. Is it possible to use ...
0
votes
0answers
34 views

I want to parse a Terraform vars file and store variables from the TF vars file as vars in a Makefile

I have two files: a Terraform variables file (vars.tf), and a Makefile. What I want to be able to do, is to have the Makefile 'read' some of the variables in the Terraform vars.tf file. The vars.tf ...
0
votes
0answers
22 views

zlib error when compiling

I am trying to install pythia package coming with POWHEG-BOX on Fedora 27. When running make main-PYTHIA-lhef it writes: pwhg_io_interface.f:214: undefined reference to `gzputc' and so on. It ...
0
votes
1answer
46 views

Creating intermediate object files to another directory with Makefile

Due to an error made when partitioning the system disk of my OpenBSD box, I'm running out of space on /usr now. openbsd$ df Filesystem 512-blocks Used Avail Capacity Mounted on /dev/sd0a ...
1
vote
0answers
39 views

How do you specify the pkg-config path when compiling something with cmake?

I want to build ffmpeg with support for the av1 codec on CentOS 7. I start by following the instructions here: git clone https://aomedia.googlesource.com/aom mkdir aom_build cd aom_build cmake ../aom ...
0
votes
1answer
24 views

Use make with more

When I try to filter make with more it does not work: make | more Not exactly sure why that it is. How do I paginate make's output? By "does not work" I mean it does not work at all. It is as ...
4
votes
1answer
65 views

Does POSIX make not support globs in prerequisites?

I was reading the POSIX 7 Make definition, and I've noticed that prerequisites are almost always described as “files”: The make utility examines time relationships and shall update those derived ...
0
votes
0answers
33 views

Arch linux: unexpectedly shut down while installing a program

I was running $ sudo pacman -S make to install make utility. During installation the power plug from my laptop was removed. I tried boot system and it works. I removed make files that I ...
0
votes
0answers
9 views

Update included makefiles on running main-Makefile

My main Makefile includes different sub-Makefiles depending on the target, like this: ifeq ($(MAKECMDGOALS),test) -include ./src/test/c++/Makefile endif ifeq ($(MAKECMDGOALS),build) -include ...
0
votes
0answers
90 views

Why am I receiving make errors when trying to compile GCC?

I am currently working on Linux From Scratch part 5.5: http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html Although i have followed everything exactly correctly to this point, I ...
0
votes
2answers
61 views

Why does my find (+ sed) command work in the terminal but not in a makefile?

I have the following command: find stdlib/main -type f -exec sh -c "echo {} | sed -e 's/stdlib\/main\///g' -e 's/\.q//g' -e 's/\//\./g' -e 's~^~/resource:\"{},~g' -e 's/$/\"/g'" \; The goal is to ...
0
votes
1answer
101 views

Compiling a Unix application in Linux [closed]

Clearly there's similarities in the underlying operating system when it comes to Unix and Linux. Is there a reason why compiling a Makefile won't compile on a Linux OS versus on a FreeBSD or OSX OS ...
0
votes
1answer
104 views

How to suppress all warnings being treated as errors for format-truncation

I am trying to build my source using gcc 8.3.0 root@eqx-sjc-engine2-staging:/usr/local/src# gcc --version gcc (Debian 8.3.0-2) 8.3.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free ...
0
votes
1answer
34 views

How to compile Neofetch (from git) in arch Linux?

I know the latest Neofetch is available in the official arch repository but I want to build it from the git clone. Since it doesn't have the PKGBUILD so makepkg is out of question and the global step ...
1
vote
1answer
48 views

something wrong with my makefile about wildcard

I have a bunch of .c test source file in directory tests/. Now I want to compile and link them respectively and output the executable *.out in tests/. So I wrote a makefile, which didn't work. # ... ...
2
votes
2answers
56 views

installing old 32-bit software on latest UBUNTU

I'm trying to install legacy software (32-bit) on a 64-bit LINUX HPC cluster. This is quite old software from 2005. Software is at https://www.drive5.com/pals/ OS details are PRETTY_NAME="Ubuntu 18....
1
vote
1answer
54 views

-lm doesn't work for my Makefile

I'm trying to create a Makefile to compile my project. However, when I use the 'math.h' library, my make fails. This is the Makefile file : run: tema1 ./tema1 build: tema1.c gcc ...
5
votes
2answers
390 views

Makefile strange variable substitution [duplicate]

My Makefile looks like this: %.foo: %.bar cp $< $@ test: *.foo echo *.foo I have 2 files in the directory: a.bar and b.bar. When I run make test it outputs: cp b.bar *.foo echo *.foo *....
0
votes
0answers
25 views

Error making vince-perf_defconfig

When I want to enter the vince-perf_defconfig file in the terminal, I get an error message like this make vince-perf_defconfig ./scripts/fetch-latest-wireguard.sh: line 7: curl: command not found ./...
0
votes
1answer
38 views

Why does make regenerate the main executable file in this makefile?

I have the following makefile: ############################################################################################################################################ ############################...