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

learn more… | top users | synonyms (1)

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
366 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
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
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 ...
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
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 ...
1
vote
0answers
231 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)...
3
votes
2answers
163 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
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'....
3
votes
1answer
216 views

vim makefile syntax highlighting issue

Vim doesn't want to highlight my target named " * .o " and its dependencies because of the char ' * ' that I use to target all object files. When I replace the ' * ' by letters the highlighting ...
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 ...
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 ...
1
vote
2answers
236 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/...
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, ...
0
votes
1answer
605 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/...
0
votes
0answers
24 views

tmux problem of linking libevent when running

This is linked to the question: Why can't gcc find libevent when building tmux from source? I was having the error when ./configure and the fix by @StéphaneGimenez only solves compile problem. ...
1
vote
1answer
221 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
32 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 PATH="$HOME/...
4
votes
1answer
31 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
62 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 /opt/ntopng-2.0/ntopng_2.0-1_armhf....
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 ...
1
vote
2answers
24 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
129 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
52 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 ...
3
votes
0answers
535 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
75 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
94 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
155 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
291 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
230 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
25 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 ...
1
vote
2answers
190 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
970 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
65 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
387 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
357 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
40 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
139 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
108 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
866 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"...
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. http://docs.ansible.com/...
0
votes
1answer
70 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 , ...