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

learn more… | top users | synonyms (1)

1
vote
2answers
68 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
72 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
274 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
45 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
59 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
1answer
183 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
69 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
22 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
80 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
81 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
94 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 ...
4
votes
1answer
102 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
90 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
42 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
114 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
64 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
26 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 ...
2
votes
1answer
169 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
181 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
88 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
63 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
160 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
88 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
91 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
124 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 ...
3
votes
2answers
109 views

Make target with two words

I'm using a Makefile to compile my Clean code. My Clean files have file names of the format *.icl and are compiled to binaries with the same name but without .icl. This is done with the rule: $(EXE): ...
0
votes
2answers
130 views

Compile Package without installing needed libraries

I try to compile bluez-utils-3.36, but after a try to configure the package, the error message: configure: error: Bluetooth library is required appeared. The problem: i am not allowed to update or ...
4
votes
3answers
1k views

Checking environment variables' value in Makefile

I have a Makefile target, in which I have to check the value of an environment variable. But, I don't get the exact syntax of it. Tried hard, but can't find it. Any help is appreciated. Environment ...
1
vote
1answer
103 views

How to run a specific test from OpenSSL test suite?

I want to measure the code coverage of different tests from OpenSSL test suite. I successfully measured the total coverage of the tests with this method: $ make clean $ export CC="gcc ...
0
votes
2answers
81 views

Linux 'make' command fails after installing ruby and gems for biopieces

We wanted to try the biopieces tools, which require certain dependencies, such as ruby and perl, a.o. After running the installers, and consequently installing some ruby gems, we were not able to run ...
1
vote
1answer
602 views

How to echo makefile variable through Make's $(shell …)

I have a GNU makefile. The makefile has a few tests (around line 65 from the linked file): UNAME = uname MACHINE ?= $(shell $(UNAME) -m) SYSTEM ?= $(shell $(UNAME) -s) IS_X86 = $(shell echo ...
2
votes
0answers
79 views

shell operation within makefile [closed]

I have the following line in my makefile: var := $(sort $(foreach m,$(libs),$($(m)-objs))) which I changed: it now uses sort from the shell: var := $(shell echo $(foreach m,$(libs),$($(m)-objs)) ...
0
votes
0answers
56 views

Trouble with Boost due to missing Makefile.cmake file?

I'm not very familiar with cmake and am afraid if I make one small wrong error, things will really screw up. I have a previous project(PrevProject) that I got to compile successfully using ...
0
votes
1answer
220 views

LFS 7.6 GCC make error

I do not have much experience with Linux systems, but I decided to work on an LFS system for a bit. I understand that this was a large undertaking for my limited knowledge, but I thought I was ...
0
votes
2answers
1k views

.PHONY all rules in GNU make file?

Am I wrong in my interpretation that I should basically just put first before all make rules: .PHONY: all of my rules all: echo "Executing all ..." of: echo "Executing of ..." my: echo ...
4
votes
2answers
242 views

Which shell is used in GNU Make files?

I've seen things like echo, mv, if, for, in makefile rules. Some kind of shell commands seem to be recognized. Is this bash? How can I figure out which shell is being used and full list of keywords ...
2
votes
1answer
75 views

Is there any advantage to using the -j2 argument when building Linux systems in VirtualBox?

I'm using BuildRoot to build root filesystem images, from within VirtualBox. The builds are very slow. Is there any advantage to running "make -j2" in the virtual machine? The /proc/cpuinfo from ...
0
votes
0answers
44 views

error: boost/current_function.hpp: No such file

I tried to reset the cmake configuration for the program I'm working on by creating a new build folder and typing make, but I get the error message directory/src/log4cplus/logger.cxx:27:38: fatal ...
0
votes
1answer
202 views

Editing make process?

So.. I figure this is alright to ask around here. https://github.com/swarren/u-boot — I have this, need to get the binary so I can finally run something other than Raspbian on the Pi. The ...
0
votes
1answer
44 views

How do I make a Make, Make Install, and deb file for a python program?

I recently wrote a python program. Now the question: how do I go about making an installation script for it? From my understanding, you need to create a make file, I believe that a make file is made ...
0
votes
1answer
60 views

make for linux kernel module

I have recently started learning kernel module programming using the book The Linux Kernel Module Programming Guide and I dont understand how does this make work obj-m += hello-1.o all: make -C ...
0
votes
0answers
94 views

build error: “log4cpp does not work”

I have been trying to build avxsynth on CentOS 7. First I successfully build the prerequisite, log4cpp: mkdir ~/avxsynth_sources cd ~/avxsynth_sources curl -L -O ...
1
vote
1answer
180 views

Some questions regarding linux kernel external module build process

The Linux kernel documentation page for building external modules (https://www.kernel.org/doc/Documentation/kbuild/modules.txt) says this: === 2. How to Build External Modules To ...
1
vote
1answer
125 views

Compiling sources with a non-default compiler

I need to implement an authentication scheme on an embedded device and require gmp in order to perform large integer operations. After downloading the sources they must be compiled with a proprietary ...
1
vote
1answer
61 views

Can `make` automatically install dependencies?

When I am installing a program with the make and make install method, there are (very often) many dependencies that need to be installed before the installation of the new program can begin. So ...
2
votes
1answer
50 views

Running make for LFS complains about [ and about missing gawk

I'm having a strange error when I'm trying to start the make process for LFS using the LiveCD SVN Trunk. When I go to run make it gives me; $ make /bin/sh: 1: [: -ne: unexpected operator -e Missing ...
1
vote
2answers
71 views

Use a package to install dependency and copy custom conf file

I used dh_make to create a basic Debian package install. I added a dependency which is the actual program I want. All I want to do is overwrite the conf file this package installed, with a new file ...
2
votes
1answer
78 views

Can I resume make after a Ctrl+C?

I am installing gcc version 5.1 on a supercomputer cluster. I configured it and am now running the make command. It has been several hours and is still running as it is a long install, but the work ...