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
30 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 ...
1
vote
1answer
427 views

#include pcap.h make fails for hcxtools

I'm running the latest version of Kali on a VirtualBox, and I cannot get hcxtools installed. More specifically, I can not figure out how to get the dependency pcap.h. Running make in /hcxtools ...
0
votes
1answer
43 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 ...
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
2answers
1k views

Makefile looping files with pattern

In bash, I can do this: for name in sqls/*.{schema,migration}.sql; do echo $name; # some operation on the file name done It would output something like this: sqls/0001.schema.sql sqls/0002....
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: &...
0
votes
1answer
1k views

Confused about why makefile is not generated

I have a lot of code used by our group. The group gave me a document that explains how to set up the makefile. However, the postdoc entered the commands really fast before and got it to work for a ...
3
votes
1answer
1k views

Modify filenames in Makefile

For reasons that are not important here, I have a source code that I process automatically file-by-file and the processed source files are renamed in a systematic manner. For example, I start out with ...
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 ...
4
votes
0answers
795 views

Visualizing dependencies coded up in makefiles as a graph

Closely related to How to display dependencies given in a makefile as a tree? But the answers given there is not satisfactory (does not work). Is there a tool to visualize the Directed Acylic Graphs (...
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 : ...
2
votes
1answer
123 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: ...
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 ...
5
votes
4answers
34k views

How to write exactly bash scripts into Makefiles?

I love to type bash scripts, but if I prepare multiple tools, project's root directory is filled with so many shell scripts. That's why I prefer using Makefile. Makefile is good. However I want to ...
0
votes
0answers
34 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=/...
1
vote
1answer
1k views

Fix for: /usr/lib/libnssutil3.so: undefined reference to `PL_ClearArenaPool'

Error occurs during attempt to make via: cc -m32 -s -o ford_check_password ford_check_pws.o wsl4_cookie_auth.o fds_auth.o -L. -L/ford/thishost/proj/dmadmin/ford/lib -lcrypto -lldap50 -lssldap50 -...
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 ...
26
votes
4answers
20k views

How to determine the maximum number to pass to make -j option?

I want to compile as fast as possible. Go figure. And would like to automate the choice of the number following the -j option. How can I programmatically choose that value, e.g. in a shell script? ...
2
votes
1answer
104 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 ...
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/...
0
votes
2answers
1k views

How to build svnwcrev

I'm having a bad time building svnwcrew, and as the readme file says: "There is no sophisticated installation procedure for this small utility."... I modified the config.mk file setting the ...
1
vote
3answers
92 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/ ...
3
votes
1answer
1k views

Arch Linux - make: error while loading shared libraries: libunistring

I keep getting this same error when trying to install various packages: make: error while loading shared libraries: libunistring.so.0: cannot open shared object file: No such file or directory It's ...
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
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
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
72 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/...
21
votes
5answers
21k views

Makefile include env file

I'm trying to include some env vars into a Makefile. The env file looks like: FOO=bar BAZ=quux Note there's no leading export to each env var. If I add the leading export and just include the env ...
0
votes
2answers
165 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
35 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
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 ...