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

learn more… | top users | synonyms (1)

1
vote
1answer
132 views

How to install kernel development headers to staging with BuildRoot?

I am planning to do some Rasperry Pi C/C++ kernel module development using BuildRoot 2015.08.1. What works: I can build a kernel and a rootfs and boot the Raspberry Pi. I can build/rebuild a "hello ...
0
votes
0answers
30 views

What environment variables to set when building and installing as regular, non-root user?

Scenario: Using GNU/Linux tools, I want to configure, make, and install to $HOME/custom as a regular, non-root user. Are the following Bash environment variables reasonable? export ...
4
votes
1answer
26 views

What is the best approach with checking dependencies for third party library during compilation from the sources?

I don't understand one thing related with compiling the project from source. How should I react when third party library is missing? What is the best approach with solving this kind of problem? For ...
-1
votes
1answer
49 views

checkinstal - dpkg -r does not remove the package

I have installed a tool form source code with checkinstall. The installation was fine. That is the output: Done. The new package has been installed and saved to ...
2
votes
1answer
97 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 ...
1
vote
2answers
22 views

Is there a way to get directory part from variable in make?

I have makefile, where I define some lib and its path: MY_LIB= dir/lib Now I know that I can use @D to get directory part from target: #This will go to dir $(MY_LIB): cd $(@D) But I want to ...
1
vote
2answers
95 views

Makefile shell ignoring sed regexp end of line

I have a folder for various testing of C code, containing many files named *.c. My aim is to have a Makefile search for any filename ending in .c and add the root of that filename to the targets. ...
0
votes
0answers
43 views

xalan-c on CentOS 7 32 bit

I downloaded a 32bit version of CentOS from https://wiki.centos.org/SpecialInterestGroup/AltArch/i386 For a script, I need xalan-c. When I search for xalan with yum search all xalan, I get this ...
2
votes
0answers
358 views

Difference between make-kpkg and make deb-pkg

I would like to know the exact difference between make-kpkg and make deb-pkg . This question asks almost the same thing but with no satisfying answers. Previously I was using make -j `getconf ...
0
votes
1answer
56 views

Error while compiling “5.9. Binutils-2.25 - Pass 2 ”

When I try to build binutils, I get the following error make[1]: *** [configure-bfd] Error 1 make[1]: Leaving directory `/mnt/lfs/sources/binutils-build' make: *** [all] Error 2 Here is the full ...
0
votes
0answers
13 views

Show “input files” that Make will use

I want to find all the source files that are used for a GNU Make build. At first I thought I therefore wanted to list all the prerequisites, but actually I don't think that's right, because for a ...
0
votes
0answers
54 views

Building glibc doesn't produce 64 bit libc.so.6

I'm trying to build glibc with a 64bit version of libc.so.6 since a library I'm trying to use wants glibc_2.14+ but it isn't provided because the system I'm running on I don't have root access and the ...
2
votes
2answers
113 views

Shell script being executed on remote machine exits after running make command

I'm trying to automate installing Erl using shell script. Here's my shell script- unzip OTP-18.0-rc1.zip cd otp-OTP-18.0-rc1 export ERL_TOP=`pwd` ./otp_build autoconf ./configure echo $ERL_TOP echo ...
2
votes
0answers
220 views

Errors cross-compiling with distcc

I'm currently attempting a build of the Raspbian kernel using both a cross-compiler (for the Raspberry Pi 2's ARM processor) and distcc, based on the instructions posted at the Raspberry Pi website. I ...
1
vote
1answer
216 views

How to use long variables name in Makefile?

Today I'm learning make command, and I find it seems can execute any bash command by reading Makefile on current directory. However, I encountered a problem. That when using variables, it seems ...
0
votes
0answers
21 views

Building man-db on android L

After finding that the version of man in Busybox Stericson doesn't print man pages at all on my Nexus 4, I decided to build man-db for android myself. So far, I've done: cd man-db-2.6.7.1 export ...
0
votes
1answer
110 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 ...
1
vote
2answers
460 views

Why does make stop with “Makefile:6: *** multiple target patterns. Stop.”?

Goal I write my slides in a markdown file and compile it to reveal afterwards, uploading it to my webserver and do other things. I wanted to organise the steps after the markdown is written in a ...
-1
votes
2answers
45 views

Building a kernel

I'm trying to build a custom kernel and I try to build it using make command but I get a No targets specified and no makefile found. Stop. error. Then I searched for the makefile in the folders ...
2
votes
2answers
60 views

How to prevent Make from randomly overriding files?

Suppose I am in an empty directory. If I now create a Makefile containing nothing but all: randomFilename and an empty file called randomFilename.sh, then GNU Make will perform cat randomFilename.sh ...
5
votes
3answers
344 views

Use shell's “*” glob, but exclude one file and don't match directories?

I've got a makefile rule that builds a zip/tarbar for distribution. In the recipe, it does some "value added" things, like ensure CR/LF's are correct, and ensures execute bits are correct before ...
1
vote
1answer
211 views

Put command result in variable within makefile target

I am trying to install something in tomcat webapp. This is beginning of my install target: tomcat=`locate --regex "^(/var/lib/tomcat[0-9]{1,2}/webapps/[^/]+/)AppName\.html$" -l 1 | tr -d "\n"` echo ...
0
votes
0answers
31 views

pkgsrc on RedHat: bmake stops during texinfo install

I am trying to install git from source via pkgsrc on a RedHat system. It's a sort of test to see if pkgsrc can be used for unprivileged package management. But, when I run bmake, the installation ...
1
vote
2answers
103 views

make: override: Command not found

During make clean I am trying to override certain variable to ensure all outputs were cleaned: clean-lib: override ARCH=32 rm -rf $(NEWLIB)$(LIBNAME).so $(NEWLIB)$(LIBNAME).a override ...
3
votes
1answer
91 views

Is there a general way of building 32bit projects on 64bit system?

I have a project that is supposed to run on all following platforms: Win x86 Win x64 Linux (Debian) x86 Linux (Debian) x64 I'm finish with windows and Linux x64 compiled although I'm not sure it ...
2
votes
1answer
556 views

Iterate bash associative array in Makefile

$ bash -version GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) Consider the following shell script: #!/bin/bash declare -A PROVS=( ["NL"]=10 ["PE"]=11 ["NS"]=12 ["NB"]=13 ["QC"]=24 ...
0
votes
1answer
46 views

Building projects from source - determining / changing bin location?

I have pulled down a git repository for Ansible and followed the instructions to build it. I'm not familiar with the process of building from source and am somewhat confused. ...
0
votes
1answer
62 views

replace new linux kernel with make

Nowdays, I have to compile linux kernel more and more... So : make /home/mohsen/K=kernel menuconfig make /home/mohsen/K=kernel make /home/mohsen/K=kernel modules_install install Question is , ...
0
votes
2answers
329 views

Having issues with compiling node.js from source using ./configure

I referred to this already answered question, but it wasnt of any help. Can you tell me what i'm missing? I'm trying to install node.js on my Debian 8.0. According to this github article, i followed. ...
0
votes
1answer
95 views

How to compile kernel module without a makefile?

Is it possible to compile a kernel module without a makefile and if so, how?
1
vote
0answers
26 views

How to build sound card drivers?

I downloaded the drivers for my sound card (XFiDrv_Linux_Public_US_1.00.tar.gz) from a website. The readme file says: Quick install In terminal, Goto source directory Execute make ...
0
votes
0answers
5 views

Is DEB_ARCH Make variable a “standard agreement”?

Makefiles of our project are setting variable DEB_ARCH. It seems to not be used by anything - at least I do not see it referenced anywhere else in the sources. Probably someone forgot to remove this ...
1
vote
1answer
120 views

Percentage symbol in $(shell) in GNU Makefile dependency

I am aware of LatexMk, but can't install that on the machine where I want to run pdflatex, so I need to write a Makefile of which %.pdf files are targets that depend on %.tex and the *.tex files that ...
1
vote
0answers
92 views

Have Makefile create rpm spec file

I have a makefile to build my program then a makefile to build my rpm package in addition to an rpm spec file to create the rpm. Right now the spec file is manually maintained. However for future ...
1
vote
0answers
125 views

Trouble linking to gtk/gtk.h even though it's installed

I am trying to build CEF (chromiumembedded) on debian jessie ########## Linking CXX static library libcef_dll_wrapper.a [ 81%] Built target libcef_dll_wrapper [ 81%] Building CXX object ...
5
votes
1answer
367 views

How to list all targets in make?

Let's say you have a project structure with lots of Makefiles and there is a top level Makefile that includes all the other. How can you list all the possible targets? I know writing make and ...
3
votes
1answer
112 views

Why do packages come without init.d scripts?

I am running Raspbian on my raspberry pi. I downloaded and installed the custom drivers from Realtek for my wifi dongle After compiling and moving the binary created to /usr/sbin/ I saw that I could ...
0
votes
3answers
46 views

Service not found for newly created binary

I am running a Raspbian box, I ran a make cmd for a package I wished to compile - hostapd After compiling I saw no errors and was left with a binary, I assume I must move this binary into /usr/sbin/ ...
0
votes
0answers
141 views

Having trouble installing libirecovery from source

Here is the output I get from the make command. I have readline installed but it is still throwing this error. What am I doing wrong here? root@Kali:~/idevice/libirecovery# make make all-recursive ...
0
votes
0answers
78 views

Error building nodejs from source on Debian

I keep getting the same error when running make on nodejs source code. I've looked and some common problems seem to be lack of a c compilier or install g++. I have these and have double checked. Here ...
1
vote
0answers
34 views

Difficulty installing and compiling Dada Engine on OSX

I am trying to install Dada Engine. The readme can be found here: https://github.com/orenmazor/Dada-Engine I have run the install bash successfully and "sudo make". However, when I run "make ...
1
vote
1answer
186 views

GNU Makefile surprise

I am try to build a simple, two-stage project Makefile with GNU make. The logic I want to follow is First I construct the dependencies (by gcc -M) I include the generated .dep files into the ...
1
vote
1answer
28 views

Organize local builds

A common thing for people who work on machines without having root rights is to locally build your own little suit of your favorite tools. The workflow goes a little something like this: tar xvzf ...
3
votes
1answer
333 views

How to script `make menuconfig`?

I want to automate a linux build but eventually get to a point where I need to run what seems to be a very manual step: make menuconfig. This seems to synchronize configs between the OS and kernel ...
0
votes
1answer
119 views

Having trouble compiling BFLT Utils: can't find libiberty.h, despite being installed

I'm attempting compile BFLT Utils (https://github.com/nihilus/bflt-utils), but keep getting the following error: $:/tmp/bflt-utils/flthdr# make gcc -Wall -g -O2 compress.c -c gcc -Wall -g -O2 stubs.c ...
0
votes
0answers
72 views

program “killed” as soon as it runs

Ubuntu 12.04 I have success with make, and output a program name algo. When I type ./algo,the terminal just directly shows 'killed' And I searched the var/log/message or syslog kern.log. I don't ...
1
vote
1answer
290 views

How to Cross Compile elfutils

My system (uname --all) Linux shyamdaramubtnb 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux My target ARM Cortex A7 I am in the process of cross ...
1
vote
2answers
119 views

Using embedded python script in Makefile

I'm trying to run a Python snippet inside a Make target, but I'm having trouble trying to figure out how these things work in Make. Here is my attempt so far: define BROWSER_PYSCRIPT import os, ...
0
votes
1answer
120 views

Can't make ./configure find tcltk while building R

I am trying to build R-3.2.1 from source with support for tcltk, but anything I try don't work, since I get then in R: > capabilities("tcltk") tcltk FALSE I am running Debian 8, I have installed ...
0
votes
0answers
153 views

How build of ASUS Merlin firmware

I'm trying to build newest ASUS-Merlin firmware on Ubuntu. My build fails with: make[7]: Entering directory `/root/asuswrt-merlin/release/src/router/lighttpd-1.4.29/src' /bin/bash ../libtool ...