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

learn more… | top users | synonyms (1)

0
votes
1answer
192 views

Having problems with make and opencv

I'm trying to build opencv for my x86_64 Centos 6 operating system. I think the problem is make is trying to use the 32 bit version of the bz2 library instead of the 64 bit version. I get this ...
2
votes
2answers
96 views

How to remove trailing spaces from makefile variable?

Makefile does not require to bound variable values by quotes. For instance this will be accepted: a := ls -l -a > out.txt My problem is: If I want to do something like this: a := ls -l -a > ...
50
votes
7answers
30k views

Why can't gcc find libevent when building tmux from source?

I want to install tmux on a machine where I don't have root access. I already compiled libevent and installed it in $HOME/.bin-libevent and now I want to compile tmux, but configure always ends with ...
2
votes
1answer
102 views

pkg-config output not working with makefile?

I'm trying to run the makefile, shown in this repo, which is a simple Wayland client. But when I run make, it seems that the output of $(WAYLAND) is blank, and it fails to compile due to not being ...
0
votes
3answers
435 views

How to write exactly bash scripts into Makefiles?

I love to type bash scripts, but if I prepare multiple programs, project's root directory is filled with so many shell scripts. That's why I prefer using Makefile. Makefile is good. But I want to ...
0
votes
1answer
183 views

how to define the top dir in automake system?

I usually use a typical steps to generate the makefile, and firstly I use the "build.sh init" to generate the configure file, and then I use "configure" to generate the makefile with makefile.am file. ...
0
votes
3answers
263 views

Send command to the shell via Makefile

I'm building a Makefile to automate the start of docker on osx. At the end of the start docker requires to launch this command on the shell in order to configure the shell: eval "$(docker-machine env ...
0
votes
1answer
59 views

Recursive Make passing targets in OS X

I am trying to write a recursive clean target for GNU Makefile on OS X (GNU Make 3.81 - from XCode). Following GNU Make documentation, I came up with the following: Main Makefile ALLSUBMAKES=$(...
0
votes
1answer
169 views

can not install, No targets specified and no makefile found. Error

I'm trying to install kiwix on fedora 23 when I tried to compile kiwix sourcecode under my computer. and when I want to run make, it shows me this message! [ar.lnx@host kiwix-0.9] $ make make: *** ...
2
votes
1answer
68 views

Use multi-threaded make by default?

Is there any way to have make use multi-threading (6 threads is ideal on my system) system-wide, instead of by just adding -j6 to the command line? So, that if I run make, it acts the same as if I ...
1
vote
1answer
925 views

Cannot find -lgcc

I'm trying to compile my next basic c program after hello-world. This contains two supporting modules. I have Ubuntu running in a VM through VirtualBox on a mac. Everything is up to date but I can'...
1
vote
2answers
54 views

Override a := in another makefile

Say I have a makefile called Foo, and it has a variable called Bar. in Foo I have: Bar := /some/initial/path Other_var := ${Bar}/more/paths and then in my main makefile I use Foo include Path/to/...
1
vote
0answers
170 views

Buliding libaffa: running make says Nothing to be done for 'all'

I'm trying to compile the library libaffa, with the following procedure: sudo ./configure -> OK sudo make && make install -> "Nothing to be done for 'all' " How do I fix this? I run ...
0
votes
1answer
44 views

Distcc ld error

I want to compile supertuxkart for notebook on my main computer (v-mint, with distcc daemon). My actions: Clone git+svn repos from official sources. (compile/{stk-code,stk-assets}). cd compile/stk-...
3
votes
2answers
164 views

How can I submit the input filename into find exec correctly?

I want to create two pdf output files of a single LaTeX source. One output file is public and the other one (with further information) becomes private. I use a make file, which uses find to grep the ...
0
votes
0answers
14 views

Autotools: Generating the GNUmakefile starting from GNUmakefile.am

After patching my Debian Jessie with Kernel 3.18.22 with the 5.0 test1 RTAI patch (www.rtai.org), I took the source code of a sample test application, provided with the patch, wanting to understand ...
-4
votes
1answer
72 views

How to determine the CPU time of the execute of Makefile in linux or Unix? [closed]

below is my Makefile using to execute my numerical code.I would like to know the time taken by the CPU to execute these C programmes. #Makefile LDFLAGS = -DN_DIM=3 #LDFLAGS = -DN_DIM=3 -...
0
votes
1answer
45 views

ERROR: make sure the Makefile and checksum file (/usr/pkgsrc/x11/gtk3/distinfo) are up to date

To install Gnome on NetBSD, I did so: #cd /usr/pkgsrc/meta-pkgs/gnome #make fetch-list|sh And waited until all dependencies downloaded, then typed: #make install clean Build started, and after a ...
0
votes
1answer
64 views

Makefile:434: *** mixed implicit and normal rules. Stop

Am using Fedora and tried to install L7-filter on linux-2.6.26 kernel. One of the steps is to run {# make menuconfig} but am getting this error Makefile:434: *** mixed implicit and normal rules. ...
0
votes
0answers
108 views

Koha-3.22.02 Installation error on CentOs

After downloading and extracting koha-latest.tar.gz I am trying to install Koha-3.22.02 on CentOS 6.x. Following are configurations and errors. How can I solve it ? Configurations, Versions [root@...
1
vote
2answers
145 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, ...
2
votes
2answers
3k views

Invoke python script through make command

I have a tool with 5 python scripts say A.py, B.py, C.py, D.py and E.py. I have to run this program in Linux. A.py is the one program I run which imports other files and uses them. For running A.py, I ...
0
votes
1answer
67 views

Which system for make command? [closed]

I am attempting to use the make command to build a project. However I do not know which system to select. How can I tell? Running Ubuntu 15.04 on a Dell Latitude D630 with an Intel Core 2 Duo CPU ...
0
votes
1answer
139 views

How do I install NTP from source on CentOS v7? (/bin/ld: cannot find -lcap)

I unpacked the .tar.gz file. I installed the gcc compiler. I ran the ./configure command with various flags and options. I ran make check and found an error. The exit status is 2. Only 0 is ...
0
votes
0answers
34 views

Function call inside make file ( Linux)

Inside a makefile, I saw the entries below: main entry pkt_srv() { } pkt_ent() { } pku_lib() { } So, is this calling another make file. i.e pkt_srv.mak and pkt_ent.mak and what is the ...
1
vote
1answer
24 views

Adding a custom preset build configuration to make

I'm building busybox from source and I have more than one configuration. (For different uses) As I have it now, each time I want to build something, I have to copy the correct .config file to the ...
0
votes
1answer
56 views

make + bash: setting environment variables on command line doesn't work

I am trying to build the kernel for Raspberry-pi on my Debian-8 host machine. I passed the following commands to build the kernel make ARCH=arm KERNEL=kernel CROSS_COMPILE=arm-liux-gnueabihf- ...
3
votes
3answers
368 views

What does make -jn mean?

I am trying to install LLVM on my CentOS machine. In the installation tutorial of LLVM, a flag -jn is specified along with make. It says to perform make -jn and also says "Choose n such that make ...
0
votes
1answer
35 views

Undefined reference to symbol 'XSetFillStyle'

I'm trying to compile, or make for Esetroot, when I get an error shown here. Is there some kind of command line argument I have to add to make, The header files are added to the c file already, so I ...
0
votes
0answers
60 views

Compiling a single kernel module which resides in the kernel tree

I have updated my Linux kernel to 4.3.3, everything works smooth except my webcam (QuickCam® Pro 9000) which is not working. According to the dmesg, the kernel recognizes the I have plugged a usb but ...
0
votes
1answer
30 views

Why is echo not working for mt valgrind command?

So I have my makefile working great, except that It doesn't create the valgrind.out file and I don't know why. So the console succesfully prints out that my executable file line is created but not ...
1
vote
1answer
113 views

How to write bash script in Makefile

I have a directory structure like this: `-- dev |-- example-object | |-- example-object.tex | `-- example-template | |-- example-template.tex | `-- instances | ...
1
vote
2answers
42 views

Replace characters in Makefile target

I'm trying to use $(patsubst %-%,%:%,$(MAKECMDGOALS)) to replace dashes with colons in the make target but it has no effect. How could I achieve this?
2
votes
1answer
875 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 ["ON"...
2
votes
1answer
84 views

Can a bootable NetBSD be built on OSX?

I've got OSX 10.9.5 . I want to build NetBSD (or at least it's kernel) on my OSX box. I've tried building the 'config' program but I can't find 'build.sh'. Is this possible and what would be the steps ...
1
vote
0answers
232 views

Error while building Linux kernel for versatile board

I'm trying to build the 2.6.32.69 version of Linux Kernel for versatile board but I got this error during the build step init/mounts.o: In function `tty_port_users': do_mounts_initrd.c:(.text+0x0)...
2
votes
1answer
108 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 ...
4
votes
1answer
1k views

Cross-compiling OpenSSH for Android

I'm working on compiling OpenSSH for Android based on this answer at Stack Overflow. Here's what I've done so far: Building on Ubuntu 14.04 amd64. apt-get install build-essential gcc-arm-linux-...
0
votes
0answers
121 views

How to fix *** No rule to make target '../../libevent/libevent.la'

I am trying to install netatalk 3.1.7 from source on Raspbian, however I get this error when I try make install: make[2]: *** No rule to make target '../../libevent/libevent.la', needed by 'netatalk'....
1
vote
2answers
77 views

Check in bash if make has done something

I'm calling make from a bash script. Part of the rest of the script only needs to be executed if make actually did something (i.e. it doesn't say nothing to be done for...). How would I check on ...
0
votes
1answer
116 views

makefile woes , attempting to compile libdai

I'd like to compile libDAI. This comes with a Makefile.conf having the line MEXFLAGS:=CXX\#g++ CXXFLAGS\#'$(CCFLAGS)' which seems to cause trouble when i try using 'make' jeremy@jrr:~/jeremy....
2
votes
1answer
22 views

Configuration of unixODBC after compiling from source

I am using a device that is running Yoco Linux on a 32 Bit architecture. It does not provide a package manager or a compiler thus not allowing me to compile on it. Instead I use a Ubuntu Virtual ...
0
votes
1answer
27 views

URL dependency in make

I need a dependency in a Makefile that fires if a URL has been updated since the file that depends on it. The situation is a bit complicated: URL 1 points to a download page. I want the rule to be ...
2
votes
1answer
107 views

No dpkg or apt, no make or gcc. Need to install them all [closed]

I have a minimal Debian Linux based machine (i686) and need to get some .deb installed. This does not even have make or gcc installed. So I am unable to compile anything on this. So to get it ...
1
vote
1answer
31 views

Calling wget from make based on a pattern

I'm using make to grab a set of files that are updated daily on a Web site. What I'd like to do is place the files into a folder named with the date, and then use make to do other processing on the ...
28
votes
10answers
3k views

Why are programs not distributed in compiled format?

But they give instructions like cd downloaded_program ./configure make install This creates the ELF that is needed, and probably some .so files. Why not put those inside a zip file for download, ...
1
vote
2answers
237 views

Cross-Compiling kernel can't find gcc

I am cross compiling the Raspbian kernel since it will take about 12 hours for the Pi to do (Raspberry Pi 1). I have the build tools for ARM and the kernel in two separate folders in /home/gray/...
0
votes
1answer
610 views

(Cross compile) How to specify the location of libraries for ld in Makefile?

I am compiling pciutils (but it's not important, it could be another source code) with a gcc ARM version. When I compile, the process stops because it cannot find the required libraries: /home/simo/...
1
vote
1answer
223 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 ...
7
votes
4answers
3k views

Compare two kernel config files from the menuconfig perspective?

I have a situation in which i have two kernel config files (for the same kernel source ). Both of them have a part of the functionality that i need (on one, USB works correctly, on other, the second ...