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

learn more… | top users | synonyms (1)

9
votes
3answers
6k views

Why do some packages use 'make install' while other use 'sudo make install'

I recently installed LAME encoder on my server to convert wav to mp3 and that worked with './configure, make, make install; I then tried to install OGG encoder and that requires './configure, make, ...
0
votes
0answers
29 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 ...
1
vote
2answers
1k views

Fedora make command broken, kernel mismatch

On a new Dell Inspiron 3521, I tried installing Linux. First try was Ubuntu, but couldn't get the WiFi working. After trying all sort of things and commands, some errors started to show. I then ...
0
votes
2answers
4k views

My handwritten C++ Makefile gives command not found

I made a makefile to help compile multiple C++ files, but it is giving me "command not found" errors. Could anyone help me to fix it? The errors I get: Make: line 1: main.out::command not found ...
1
vote
0answers
178 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
41 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
12 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
37 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
83 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
1answer
111 views

How do I install htmldoc via cygwin?

I've installed all packages with gcc in their title via cygwin on my PC along with FLTK and I ran ./configure and ./configure ENTER with no errors but now after running make I received the error: ...
0
votes
1answer
45 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
206 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 ...
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
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
0answers
140 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
2answers
140 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
vote
1answer
190 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
19 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
65 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
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
57 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
280 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 ...
7
votes
2answers
13k views

How do I change which version of Qt is used for qmake?

I feel like there should be a simple way of doing this, but my googlefu is failing so I'd really appreciate some info on how to switch (or even permanently change) which version of Qt is used when ...
1
vote
1answer
116 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 ...
1
vote
2answers
69 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 ...
0
votes
0answers
20 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 ...
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 ...
13
votes
2answers
36k views

Where can I find a list of 'make' error codes?

I am trying to compile a program written in Fortran using make (I have a Makefile and, while in the directory containing the Makefile, I type the command $ make target, where "target" is a ...
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
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
187 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
81 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
96 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
107 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 ...
11
votes
8answers
15k views

jemalloc and other errors making redis on centos 6.4

I am setting up a new, dedicated, centos 6.4 system with redis. I have installed redis many times, but have never hit this issue (and have never been on centos 6.4 before). cd redis-2.6.16 sudo make ...
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
0answers
117 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
65 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
170 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 ...
0
votes
1answer
89 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 ...
3
votes
1answer
182 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 ...
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
165 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 ...
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 ...