Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [make]

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

0
votes
0answers
10 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
24 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
12 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
368 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
24 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
27 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
25 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
22 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/...
1
vote
1answer
47 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
55 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
19 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
38 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
66 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
20 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
42 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
16 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
41 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
26 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
111 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
24 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
21 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
35 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
34 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
61 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
27 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
8 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
71 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
51 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
70 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
29 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
42 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
53 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
50 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
322 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
23 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
37 views

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

I have the following makefile: ############################################################################################################################################ ############################...
0
votes
0answers
58 views

The “make” command in Linux

I have successfully downloaded all of the files and libraries necessary for compiling and making the Courier Mail Server version 1.0.6. I have also downloaded most of the Sox files as well. I am ...
8
votes
6answers
958 views

What are the advantages of using `make` for small projects? [closed]

I've seen that make is useful for large projects, especially with confusing dependencies described in a Makefile, and also helping with workflow.  I haven't heard any advantages for using make for ...
0
votes
2answers
81 views

Cannot compile git on OpenBSD

I'm trying to install git on a college server, just for my user, but for some reason I can't compile it. I tried the latest version on github, as well as a couple random older versions from both ...
0
votes
1answer
66 views

Hello World Makefile

Can any one explain the simple makefile give below, as i want to start with kernel module programming and i am not getting it. obj−m += hello−1.o all: make −C /lib/modules/$(shell uname −r)/...
0
votes
1answer
79 views

Assigning comma separated lines to a variable

(Is it possible/How) to assign comma separated lines to a variable in make file? var1=name,name2, name3,name4..... For space separated I just have use \ like this var = name1 name2 \ name3 name4
2
votes
1answer
79 views

Could not find a suitable mpi compiler (mpicxx or mpic++) whlie using “$ make -f Makefile.shlib auto ”

As figure shows, I'm using Linux to install LIGGGHTS, when i type "make -f Makefile.shlib auto", it shows me [auto] Error 2, i tried to set USE_MPI to "OFF", but it did't work, my Question is, how do ...
1
vote
1answer
144 views

Why does my Makefile not compile and how can I fix it?

I have been having problems compiling a router's kernel for QEMU. I have the router working in QEMU using an OpenWRT kernel, but networking does not work. This is why I want to compile the original ...
3
votes
0answers
55 views

kernel 2.6.35.3 - how to convert .config to defconfig

If you have newer kernel (i.e. > 2.6.35.3) you can create a 'defconfig' from a '.config' by using make savedefconfig But in kernel 2.6.35.3 - does not provide you with 'savedefconfig' target. How ...
0
votes
1answer
183 views

Compiling vsftpd on CentOS7, getting “/usr/bin/ld: cannot find -lcap” error

I am in the process of compiling vsftpd, but keep getting this error: [alex@lab vsftpd-3.0.3]$ make gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o \ privsock.o tunables.o ftpdataio....
3
votes
1answer
90 views

Prevent completion of files for 'make' command in zsh shell

Context zsh shell, oh-my-zsh framework, no special zsh's configuration (same problem with or without zsh-completions): see .zshrc at the end. Trouble If a directory contains: a makefile with ...