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

learn more… | top users | synonyms (1)

2
votes
2answers
2k 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
55 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 ...
3
votes
3answers
1k views

How to install BPG (Better Portable Graphics) on Linux Mint 17?

How do I install BPG (Better Portable Graphics) on Linux Mint 17? I downloaded the tar.gz file from Fabrice Bellard's website. The ReadMe file says, Edit the Makefile to change the compile ...
0
votes
1answer
86 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
28 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
53 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
353 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
31 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
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 ...
0
votes
1answer
26 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
95 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
31 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
671 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 ...
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 ...
1
vote
0answers
171 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': ...
2
votes
1answer
99 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 ...
0
votes
0answers
90 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 ...
1
vote
2answers
74 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
104 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' ...
2
votes
1answer
19 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
26 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
89 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
28 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
158 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 ...
0
votes
1answer
442 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: ...
0
votes
0answers
16 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
155 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
2k 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 ...
0
votes
0answers
30 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 ...
4
votes
1answer
27 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
52 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 ...
1
vote
2answers
22 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
8k views

X11/Xlib.h: No such file or directory

I am trying to install tcl and tk on my linux server.I don't have the root password,So I am installing them in my home directory.I am using below method for installing it manually. cd ...
1
vote
2answers
104 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. ...
1
vote
0answers
106 views

How to compile dcp2icc?

After trying for hours I am unable to compile dcp2icc-0.1 on Linux. With a simple Makefile added to the original code it fails as follows: g++ -o build/XMP/source/XMPCore/ExpatAdapter.o -c -O2 ...
1
vote
2answers
88 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 ...
0
votes
3answers
47 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/ ...
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, ...
1
vote
2answers
2k 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
5k 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 ...
2
votes
0answers
404 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
60 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
66 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
127 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
116 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
47 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 ...