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

learn more… | top users | synonyms (1)

3
votes
2answers
54 views

Output to multiple files with Makefile

I have a makefile that I use to convert files in markdown into .pdf through a latex template. At the moment, this only works with one file at a time. However, I'd like the makefile to run on any ...
0
votes
0answers
24 views

Buildroot - move to another machine make failed [closed]

I have a following problem: due to my computer breakdown I had to move whole buildroot system to another machine and put it in another directory.It stopped to compile. I tried make clean and make all ...
3
votes
1answer
79 views

ld cannot find -lgfortran

I'm trying to compile Knut (a maths program) on Arch Linux with CMake and I'm getting the following error: /usr/bin/ld: cannot find -lgfortran /usr/bin/ld: cannot find -lquadmath collect2: error: ld ...
0
votes
0answers
33 views

Problem while building caffe

I'm trying to build caffe from source on Arch Linux and it is giving me this error after executing make -j16 CXX/LD -o .build_release/tools/convert_imageset.bin .build_release/tools/convert_imageset....
1
vote
1answer
21 views

wmctrl compilation error - missing library

wmctrl is a utility application that controls GNOME/linux windows from command line I am building a wmctrl binary from source, however I am having a problem compiling it, it complains about not ...
3
votes
1answer
30 views

Makefile: installing external Linux kernel module

I am writing a simple Makefile for an external kernel module. Building it with: obj-m += usbtherm.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules compiles only the ...
1
vote
1answer
56 views

Install command if command doesn't exist [closed]

I have this set up in a Makefile. ARG_2 := $(word 2, $(MAKECMDGOALS)) command_exist=command -v $(1) >/dev/null 2>&1 command_not_exist=! command -v $(1) >/dev/null 2>&1 npmig: ...
1
vote
1answer
31 views

Where is make database located?

I don't know why Google searches aren't showing anything. From documentation: The make program uses the makefile data base and the last-modification times of the files to decide which of the ...
2
votes
1answer
45 views

Installing Swift on Freebsd Cannot Make LLVM

I am attempting to build Swift using the new port on FreeBSD 10.2, however, make throws the following error : llvm38-3.8.0_3 is marked as broken: LLDB does not build with Python 3. What do I ...
6
votes
1answer
44 views

How to display dependencies given in a makefile as a tree?

Problem I want to see the dependencies for one or more targets of a makefile. So I am looking for a program that can parse makefiles and then will represent the dependencies in some tree-like format (...
-1
votes
2answers
66 views

gmake shell and PATH in a Makefile

Could anyone please explain why following: export PATH:=$(PATH):~/bin2 B:=$(shell PATH=$(PATH) testXq.sh) $(warning $(B)) Is working properly showing results of run of the ~/bin2/testXq.sh, while ...
1
vote
1answer
15 views

Unable to install libltc-dev in beaglebone black debian

I am trying to build some C programs in beaglebone black (using debian) which I git clone from here. Now I try command make I got this error :- Makefile:9: *** "https://github.com/x42/libltc version &...
0
votes
1answer
23 views

Missing NIC in CentOS 5 - AsteriskNow 1.7.1

So I have two nics, but I can't get the second to load, here is the output from lspci -vvv 04:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection Subsystem: Super ...
1
vote
1answer
30 views

Arch: All warnings treated as errors?

I'm trying to make a downloaded driver, xf86-video-armsoc, on Arch Linux. However, the configuration of make prevents me from compiling the driver because it treats all compiler warnings as errors. Is ...
0
votes
2answers
21 views

Ubuntu: Installing programs into specific locations

I have software which is built using a makefile. This makefile also contains (relative) paths to different programs (such as gsoap, postgresql and others) which provide stuff that I need to include. ...
1
vote
1answer
26 views

Turn DOCS, NLS, and EXAMPLES options off by default for all FreeBSD ports

The Porters Handbook says in "5.12.1.3. Default Options" that DOCS, NLS, and EXAMPLES are on by default for all ports. I want them off, so I have to unchecked them manually during make config-...
2
votes
2answers
142 views

Simulate the running of a “make install” — a “dry run”/simulator utility?

Is there a generic way of running a bash script and seeing the commands that result, but not actually run the commands - i.e. a "dry run"/simulator of sorts? I have a database install script (...
0
votes
0answers
32 views

m2c : Command not found

I want to experiment on DCTCP protocol. For that I am trying to compile linux kernel version 3.2.18 and include a dctcp patch for that. I am following the directions given here. While I am compiling ...
0
votes
0answers
22 views

Kernel make install error for RTAI 3.8 on CentOS 6.5

Before posting I have read almost every similar post I could find on this and other websites but I haven't found an useful answer. I have to install a custom software that needs RTAI 3.8 on top of ...
2
votes
2answers
76 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 > ...
2
votes
1answer
68 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 ...
1
vote
0answers
42 views

php links against system libxml instead of version specified by ./configure --with-libxml-dir

I'm trying to build php-5.5.33 from source on a Debian 8 system; configure and make both run successfully, but when I run make install I get the following error: Installing PEAR environment: /...
3
votes
2answers
201 views

Unable to compile Linux kernel

I am trying to upgrade my kernel to 4.5 in Linux Mint 17.3, but I get the following error: Makefile:666: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler ...
0
votes
3answers
311 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 ...
2
votes
0answers
743 views

m: command not found

just tried to compile the R-language from sources but my make aborted with m -f liblzma.a make[4]: m: Command not found I eagerly searched the web but it seams it's impossible to find the command ...
0
votes
3answers
205 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
109 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: *** ...
0
votes
1answer
53 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=$(...
2
votes
1answer
48 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
2answers
52 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
119 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
34 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-...
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
65 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
42 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
52 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
89 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@...
0
votes
1answer
63 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 ...
1
vote
2answers
16 views

Linker error about -laudio

I'm trying to make rcssmonitor and I get the following error: /usr/bin/ld: cannot find -laudio I'm using Linux Mint 17.2. with gcc 4.8.4.
0
votes
0answers
33 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
19 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
109 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
1answer
54 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
361 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
32 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
1answer
28 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
104 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
36 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
83 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 ...
0
votes
0answers
58 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 ...