Questions tagged [make]

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

Filter by
Sorted by
Tagged with
4
votes
1answer
9k views

Pass an option to a makefile

Makefile my_test: ifdef $(toto) @echo 'toto is defined' else @echo 'no toto around' endif Expected behavior $ make my_test no toto around $ make my_test toto toto is defined ...
-4
votes
1answer
73 views

Folder exclusion formatting issue

I'm trying to create make targets for flawfinder and cppcheck that will recursively search the current directory, but ignore directories named "Test". However, I have run into some issues with ...
2
votes
1answer
131 views

make unable to recurse for autoconf-like projects

I've built a Linux system running on an ARMv7 chip and it works surprisingly well, but I have run into a problem with native builds. First I bootstrapped by cross-compiling on an x86-64 system, and ...
3
votes
1answer
729 views

Why does make behave strangely when writing multiple targets using the % character?

According to GNU Make Manual A rule with multiple targets is equivalent to writing many rules, each with one target, and all identical aside from that. The same recipe applies to all the targets, ...
0
votes
0answers
279 views

Building Device Drivers “make” Error

I'm quite new to Linux Kernel Development, and I have an issue trying to build my device drivers so that I can test them and run the strace command on them. However, for some reason, in any directory (...
6
votes
2answers
8k views

Why both `make clean` and `make mrproper` are used?

It is written in the linux kernel Makefile that clean - Remove most generated files but keep the config and enough build support to build external modules mrproper - Remove all generated ...
1
vote
2answers
877 views

mk, sed, and embedding environment variables [closed]

When using mk, GNU sed, I find that variables do not expand at all. Problematic code: VAR=qux ... build: sed -i "s|FOO = .*|FOO = $VAR|" bar.file This seems to run the following: sed -i "s|...
3
votes
1answer
210 views

Stow - no configure script

In the program GNU Stow, the symlink farm manager/package manager/whatever you want to call it, you can run the following commands to install a package to /usr/local: ./configure --prefix=/usr/local ...
0
votes
1answer
607 views

Error installing aircrack-ng during make step, something about HMAC?

I'm trying to install aircrack-ng in kali rolling, and I'm trying to use the make function, but I get an error saying something about a file named HMAC_CTX: crypto.c: In function 'calc_mic': crypto.c:...
1
vote
1answer
227 views

Kernel make error: “sorry, unimplemented: -mfloat-abi=hard and VFP”

I am trying to compile kernel for Allwinner A10 processor (sun4i, ARMV7) for Android 4.1.2. Config file is copied from the device. This is the output : $ make ARCH=arm CROSS_COMPILE=/home/user/...
0
votes
0answers
451 views

VirtualBox faulty UI: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-Gy8Y9jNtrJ: Connection refused

I just installed Fedora 26 4.11.11-300.fc26.x86_64 and am trying to install and run VirtualBox. Note that I had the same problems with the previous version/kernel build recently and removed the old ...
0
votes
2answers
3k views

how to fix fatal error: gd.h: No such file or directory

I am trying to install some software called CRISPResso on my mac using sudo pip install. When I type the command CRISPResso --help I get the following message. You need to install and have the ...
1
vote
0answers
36 views

problems in download software in Ubuntu on Windows [closed]

I am using the Ubuntu on Windows 10 feature and am trying to download the software S4. I have problems installing, and in fact I don't even understand some of the instructions as I'm pretty new to ...
0
votes
1answer
927 views

CMake returns linux/videodev.h not exist while build opencv

Got problem while building opencv accoding to link: Determining if the include file linux/videodev.h exists failed with the following output: Change Dir: /home/pi/opencv-3.1.0/build/CMakeFiles/...
1
vote
0answers
326 views

can't make after doing cmake

Not sure this is the correct place to ask my question, but I'd like to give it a try as some people already managed to help me here in the past. I am trying to run this software on my computer: ...
5
votes
1answer
11k views

How to append some text to a variable in makefile?

I have a Makefile. Somewhere in the makefile there is a variable defined: FOO=hello Later on I need to append some text to FOO's content. I tried it like this: FOO=$(FOO)_world I suggested that ...
0
votes
1answer
39 views

Can't use make command Bluetooth

I am trying to downgrade from Bluez5 to Bluez4 in case to use HFP , here what I get used make after ./configurate command ~/bluez-4.101 $ make GEN lib/bluetooth/bluetooth.h ln: target 'lib/...
0
votes
1answer
149 views

make isoimage fails with 160 error

I am trying to build a new kernel (more details later) to use in a pxe boot. I ran the make, so now I am trying to run make isoimage so I can rip the need files. Here is my attempt with the error. Any ...
2
votes
2answers
4k views

One line condition check in Makefile

I'm trying to achieve something like this: If user will run make build_x version=1.0 then show Building version 1.0, else (make build_x without version param) show Building version latest. But what is ...
2
votes
2answers
931 views

How to compile driver in FreeBSD

In Ubuntu 16.04 I can do it like this: apt-get install build-essential git git clone https://github.com/CristianVladescu/rtl8814AU.git cd rtl8814AU && make && make install In FreeBSD,...
1
vote
1answer
688 views

Building packages from source on Arch linux

I've recently set up Arch linux on my desktop PC as a project over the summer, and I'm trying to figure out how to install programs from source. From what I've gathered I have to get the tarball file, ...
0
votes
2answers
2k views

rm -r inside Makefile not removing directory

I am trying to check a website with html-proofer with a Makefile rule and delete a temporal folder when it ends. To make this work I start a server in one console and in another one execute the ...
1
vote
1answer
973 views

How to set shell environment variable from autotools .am file?

I need to get the shell equivalent of export PYTHONHTTPSVERIFY=0 to work in an autotools .am file, but can't get it working. I currently have this declaration in my Makefile.am file: ...
2
votes
1answer
139 views

Convert Debian Makefile for FreeBSD

I'm trying to follow a guide to compile a program for Debian in FreeBSD. I have the following makefile: obj-m += kernelinfo.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules ...
1
vote
0answers
76 views

Optimal value for make -j <value> [duplicate]

What is the optimal value of the -j flag for make ? I know that all my source is free of errors. Is it the number of cores? Or the number of logical processors?
0
votes
0answers
73 views

Cannot build source from FreeBSD live CD

I screwed up my FreeBSD system, so I'm going to fix it from a FreeBSD live CD. First, I boot into the live CD, mount the partition where the broken system resides in with mount -t ufs /dev/ada0p5 /...
1
vote
1answer
326 views

FreeBSD: everything exited on signal 12 after “make buildworld”

I downloaded and compiled the source code of FreeBSD with: git clone https://github.com/freebsd/freebsd.git /usr/src cd /usr/src make clean make buildworld and literally everything would exit on ...
0
votes
1answer
84 views

FIO Benchmark Tester: Error when building from source

I encountered some errors when I was trying to build the FIO from source with the 'make' command. It seems I may be missing something. Does anyone what it is? root@DSI:/home/main/fio-2.2.10# make ...
0
votes
0answers
50 views

How can I build and install yum such that it runs exclusively out of a user-owned directory?

I've been searching for one day and I found nothing solid. All the instructions I've been reading on how to install yum, assume I have access to folder /etc/ so that I can set the file /etc/yum.conf. ...
0
votes
1answer
802 views

Kernel module compilation fails: No rule to make target droid/sunxi-livesuite-master/awusb'' [closed]

I tried to compile awusb.ko on my Linux Mint with make make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. Dies ist Freie Software; siehe die Programmquellen für ...
2
votes
2answers
83 views

Can binaries built from source be installed on a second machine?

I'm not sure if this is the best place to ask this - please point me in the right direction if there's a better place. Let's say, hypothetically, that I have two machines - A is a development machine,...
0
votes
1answer
38 views

What is the reason that configure file is required for uninstalling an application installed via configure, make and make install?

In https://unix.stackexchange.com/a/141619/674 I wouldn't store just the makefile. While the uninstall target may not (or perhap, should not) need anything else to succeed, that's not a ...
0
votes
1answer
261 views

guile2.0 conflicts guile?

I'm trying to install gdb which requires guile2.0 as dependency. However guile ver.2.0.11-3 is already installed, as a dependency of make. Now when pacman tries to install guile2.0, installation ...
2
votes
2answers
584 views

How to build third-party Geany plugins?

After downloading and extracting Geany's JSON Prettifier, and installing yajl, the make command does raise this error: /bin/sh: 1: pkg-config: not found ./geany_json_prettifier.c:32:25: fatal error: ...
0
votes
4answers
982 views

Makefile alternative for those who don't want tab indenting all content under the opener

Is there a GNU make alternative if don't want to use tab indents in my make program (or make-like) program? For example, when I use make, I need to indent everything after the make opener, (% :). ...
1
vote
1answer
518 views

Building .deb package for Linux perf?

There is a convenient Linux kernel makefile target "make deb-pkg" to build kernel, modules, headers as .deb. Then I can install/remove via dpkg command. However, for perf compilation, there is only ...
0
votes
2answers
283 views

Script 'for loop' not working as intended

I am writing a script to create a Makefile. I used a for-loop to iterate through all my arguments to 'echo ... >> Makefile' into the command section of each target. The expected output goes something ...
4
votes
2answers
2k views

Building error - how to fix missing header file

I'm trying to build cuneiform from source with imageMagick support, but it looks like the debian package missing a header file. When I'm running make it fails at the very end of the process: [100%] ...
9
votes
1answer
2k views

Process substitution in GNU Makefiles

On a bash prompt, one can execute diff using pseudo files: diff <(echo test) <(echo test) Adding this as is into a Makefile fails: all: diff <(echo test) <(echo test) The error ...
1
vote
1answer
74 views

Error: TCA_HTB_PAD undeclared while building kernel

I was trying to build the kernel following this tutorial (I'm on Ubuntu). When executing the "make" command, I got an error: net/sched/sch_htb.c: In function ‘htb_dump_class’: net/sched/sch_htb.c:...
0
votes
1answer
25 views

Adding -DVLA to the make command of appstream

Situation: I am building Pantheon from AUR on Arch Linux. Problem: I have issues building appcenter-bzr. On appcenter-bzr's page, there is a comment saying to "You want to add the -DVLA flag to the ...
1
vote
1answer
1k views

Use variable for string substution in makefile

I've this really simple make file: run: test -f ./bin/alfred-proxy || wget "http://localhost:8081/1.0.26/my-binary-1.0.26.tar.gz " -O /tmp/my-binary.tar.gz && tar xfvz /tmp/my-binary....
2
votes
1answer
253 views

Redirecting a Makefile inside a cat heredocument vanishing variables and line breakes

Executing: cat <<MAKE >> /etc/apache2/sites-available/Makefile1 % : printf '%s\n' \ '<VirtualHost *:80>' \ 'DocumentRoot "/var/www/html/$@">' \ 'ServerName $@' \ ...
1
vote
1answer
298 views

Linux - Check the makefile options with which the current kernel is built

I remember there is a way(command) to check the makefile(make) options that distribution developers used them to build the kernel of current distribution. Is my memory wrong?
1
vote
1answer
558 views

Makefile installing python module out of of pythonpath?

I'm currently building a project that imply sources from different languages such as C, C++ and some homemade python module. I'm using Automake/Autotools to install the sources. Problem here is when i'...
2
votes
1answer
634 views

Specify script to run with install command automake

I'm currently building a large package which is handled with automake. Package is composed by C,C++ and Python. So far i have good results with C/C++ but i'm blocked when it comes to python ...
2
votes
2answers
2k views

What is the difference between 'make' and 'make oldconfig'

With regard to this question: How to script make menuconfig, what is the difference between running make and make oldconfig? I assume that if you run make, it uses the old .config anyway.
1
vote
3answers
452 views

Have multiple versions of Nginx on Debian

I have a standard version of Nginx (installed through apt-get) running my production environment (Debian Jessie). Now I want to compile the most recent release of Nginx from source with some extra ...
0
votes
2answers
2k 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
3answers
252 views

STDOUT as argument in bash / Makefile and handle space properly

This is more of a mental practice with bash syntax. I would invite you to take this as a puzzle so we may solve this together. Or as a challenge in understanding bash. The Problem For instance, I ...