Questions tagged [make]

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

Filter by
Sorted by
Tagged with
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
142 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
898 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
668 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
908 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
134 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
60 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
70 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
313 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
49 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
763 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
37 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
257 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
565 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
954 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
494 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
258 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 ...
3
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
1k 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
240 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
287 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
547 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
623 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
419 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
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
3answers
246 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 ...
9
votes
2answers
11k views

What does % symbol in Makefile mean

I am playing around with makefiles and I came across %.o or %.c. From what I understood, it specify all c or o files. But why this work: %.o: %.c $(CC) -c $^ -o $@ and this doesn't work ...
5
votes
1answer
2k views

What does “-” mean in this “-cp” command?

I came across this in one of Android makefiles (build/core/Makefile): $(hide) -cp $(TARGET_ROOT_OUT)/init.recovery.*.rc $(TARGET_RECOVERY_ROOT_OUT)/ What does the - mean in front of cp here? It ...
0
votes
1answer
115 views

Why 'Makefile' demands dependency?

I wonder why 'Makefile' demands dependency line in spite of a command line already has list of file. For example, hello : main.o hello.o gcc -o main.o hello.o The gcc command already ...
0
votes
1answer
180 views

Make pattern match directories

I'm using gnu make and stow to manage some configurations (dotfiles). I have multiple directories in my repo: dotfiles/ ├── Makefile ├── package1/ └── package2/ Currently, my Makefile looks like: ...
1
vote
1answer
434 views

how to build with make so that only the changed files get build [closed]

My source code is in src directory and my object files go to the AS5 directory. Here is my make file: CC = g++ CFLAGS =-c -std=c99 -g -w -Wno-deprecated -D_FILE_OFFSET_BITS=64 -DATOMIC_BUILT_IN -...
3
votes
1answer
2k views

checkinstall freezes at “Copying files to the temporary directory…” when building vim8

I'm having a very strange problem with checkinstall when trying to build vim8. Here's what I did (although probably irrelevant): Cloned from vim8 git source Ran configure & make --enable-gui=...
-1
votes
1answer
644 views

Creating a default rule that compiles a program?

I'm attempting to do an assignment which utilizes a "makefile", a "readme", and also a C++ source program (.cpp file) and all of this should be in a compressed tar file. I was told that my makefile ...
0
votes
1answer
793 views

Apache 2.4.25 Make failed due to PCRE cannot find pcre.h

I use Solaris 11. pcre.h exist in /opt/app/pcre/lib but Make cannot detect it.How can I include /opt/app/pcre/lib during make? Apache 2.4.25 configure: CC='/opt/app/solarisstudio12.4/bin/cc' CPP='/...
-2
votes
1answer
3k views

Can't Execute Makefile, Even As Root!

I'm trying to compile a c program, but when I try to execute the makefile, I get "Permission denied". This is what I did : root@mycpu:/usr/bin# MakeFile -bash: /usr/bin/MakeFile: Permission denied ...
4
votes
1answer
2k views

bin/ld: cannot find -l<nameOfTheLibrary> install BigARTM - CentOS v7

I am trying to install BigARTM according to this tutorial on Centos 7. But I am getting this error: /bin/ld: cannot find -lboost_thread-mt /bin/ld: cannot find -lboost_program_options-mt /bin/ld: ...
1
vote
1answer
936 views

Differences between building from git clone and downloaded zip

I'm trying to build the xcb-util-xrm library manually. I found two links with build instructions one from the issue tracker of i3gaps and one from this bug report here. The instructions in the first ...
1
vote
0answers
126 views

Makefile linux fortran code

How should I fix this Error while running my makefile? *****No rule to make target sh2st2.f95, needed by sh2st2.o. Stop.***** My makefile is as follows: Makefile: sh2st2.o sh3dt0.o sh4dt2.o ...
2
votes
0answers
286 views

Automatically generating makefiles for a different compiler from an existing makefile

I am looking for a tool which can generate makefile for Sun CC compiler from an existing makefile , which is actually written for GCC compiler.Is there any tool which does the same? I tried by setting ...
0
votes
1answer
54 views

Compilation error when building gnu-screen package for Freescale P2020 Board

I am trying to run screen package on a Freescale P2020RDB Hardware board. I have successfully run ./configure and make and make install commands for the package I get the following log error: No ...
0
votes
1answer
816 views

Set newly created file as variable in makefile [closed]

I am trying to create a file and set the contents of a file to a variable but the variable is always seen as empty. An example: define FILE_VAR cat /output/1.txt >> /output/2.txt $(...
0
votes
1answer
2k views

Using eval in make file

I run a buildroot make and during this build process a text file is created. After this happens another make as part of the build is run. I want to read the contents of the generated file into a ...