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

learn more… | top users | synonyms (1)

3
votes
3answers
229 views

How to list prerequisites externally in GNU Make?

How can I query prerequisites of a target from a GNU Make makefile? E.g. if the targets specified like this: fred: wilma barney betty I want to print prerequisites of fred like this: $ make ...
5
votes
5answers
7k 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 ...
0
votes
0answers
9 views

does checkinstall uninstall previously installed software?

Originally I installed emacs 24.4 by compiling its source and checkinstall. I use the default install dir --prefix=/usr/local. So /usr/local/bin/emacs. Now I use the same way to install emacs 24.5. ...
1
vote
1answer
13 views

Is there a easy-to-install distribution with all the necessary tools to compile (make, autotools, etc)?

I'm working on a workstation without root privileges. Since I need some tools I cannot install directly, I wish to put them in a vm. The problem is, I cannot connect to the repositories from the vm ...
7
votes
1answer
9k views

GCC error trying to exec 'cc1'

I was cross-compiling a Linux kernel for my Raspberry Pi on a laptop (running debian 7) (followed the instructions here); but when I start compiling (make ARCH=arm CROSS_COMPILE=${CCPREFIX}), I get ...
0
votes
0answers
44 views

libssl undefined reference to symbol 'SSL_load_error_strings@@OPENSSL_1.0.0'

With the following CMakeLists.txt (I tried to snip it AMAP) https://gist.github.com/pbertoni/29200833dc562ab6ee2c I got this error from make at linking time: /usr/bin/ld: ...
0
votes
0answers
14 views

Make fails while installing Node.js on my cPanel server

I've tried all the solutions I've found like make LINK=g++ with no results. It is a cPanel server and I don't have sudo rights. I've tried following tutorials and the tutorial says: wget ...
0
votes
1answer
585 views

How to build svnwcrev

I'm having a bad time building svnwcrew, and as the readme file says: "There is no sophisticated installation procedure for this small utility."... I modified the config.mk file setting the ...
1
vote
3answers
2k views

How to run a Python script in Makefile

I want to write a Makefile to find specific files and run a Python script on each file. The Python script accepts sys.stdin input. find $(W)/$(OVE) -name "*.xml" -print | \ while read x ; do \ cat ...
0
votes
0answers
36 views

Error while building libmtp package :Makefile:446: recipe for target 'libmtp_la-util.lo' failed

I am getting an error while building the libmtp sources from pisi linux: Makefile:446: recipe for target 'libmtp_la-util.lo' failed This is the full output: http://pastebin.com/mXtWmJPJ.
1
vote
1answer
61 views

How to fix “skipping incompatible /usr/lib/libc.a”

I get the following error when I try to build an embedded Linux target on a 64 bit Fedora 16 (Verne): make[3]: Entering directory `/export/home/git/minerva-5.x/third_party/multifiles' ...
2
votes
3answers
90 views

How to take variables from another Makefile in shell script

I want to use the variables from another Makefile under the directory ~/kernelbuild/linux-3.14.37 in my own shell script. Following is the variables that I need: VERSION = 3 PATCHLEVEL = 14 SUBLEVEL ...
2
votes
0answers
61 views

Shell script for automated kernel compilation

I am trying to write a shell script to build a custom kernel on Arch Linux. I have succeeded to do write all the steps described in the Arch Linux kernel compilation page: ...
8
votes
4answers
2k views

how can a makefile detect whether a command is available in the local machine?

I began to use org-mode for planning out my tasks in GTD-style system. Putting every org files in a directory of a Dropbox folder, I run emacs to edit / manage these files from three different local ...
1
vote
1answer
24 views

Switch-case block inside define keyword in a single logical line in a makefile

This is the code excerpt from ghc.mk, part of Haskell source compilation. I find it different, because the author has chosen to write one function block in a single line. Is it a common practice in ...
3
votes
2answers
23 views

File function in makefile takes args prefixed by '@' symbol

This code excerpt is from Chapter 8.6 of GNU makefile manual. What does @$@.in for file function arg in a makefile mean? and why are shell commands like rm prefixed by '@' symbol program: $(OBJECTS) ...
0
votes
1answer
16 views

can't find “buildkernel” target in FreeBSD source files

I'm trying to compile a FreeBSD 9.3 Kernel. in the docs it states that the commands make buildkernel and make installkernel must be run, However I can't find these two targets anywhere in the make ...
0
votes
1answer
22 views

Confused about why makefile is not generated

I have a lot of code used by our group. The group gave me a document that explains how to set up the makefile. However, the postdoc entered the commands really fast before and got it to work for a ...
1
vote
2answers
137 views

Is it safe to symlink to /usr/include/x86_64-linux-gnu/sys from /usr/include/sys?

I'm missing the /usr/include/sys dir and all of its headers. I have build-essentials and supposedly every other -dev package I require for this make. From reading around I understand that it's safe ...
3
votes
1answer
22 views

Target-specific make variables

How can I force a target-specific variable to be set immediately (line 2)? I want the output of make to be release and make debug to be debug. X = release debug: X = debug debug: all # the rest is ...
2
votes
1answer
41 views

Uninstall & remove emacs (installed via “make”)

I have installed emacs24.4 through instructions on this site. Now I want to uninstall and remove it completely, but since I haven't installed emacs via apt-get I can't seem to remove it either via ...
0
votes
1answer
45 views

make: xscale_be-gcc: Command not found

I'm new to embedded and am reading 'Embedded Linux Primer' at the moment. I tried to build an xscale arm kernel: make ARCH=arm CROSS_COMPILE=xscale_be- ixp4xx_defconfig # # configuration written to ...
0
votes
0answers
28 views

Confusing linker error

I'm trying to compile and link something, and make is spitting out the following error message: /usr/local/bin/ld: cannot find -lpolkit-gobject-1 collect2: error: ld returned 1 exit status When I ...
-2
votes
1answer
37 views

What ./configure make and make install does [closed]

I would like to know exact backgounf taks that happen when you install an application from source What happens when you run ./configure What happens when you run make What happens when you run make ...
3
votes
1answer
210 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 ...
1
vote
1answer
50 views

use bash to pass 2 variables to a Makefile

I have a bash script which outputs calls to my make file. #!/bin/bash mylist=( 'SAMPLES_OUT=$(call list_samples,AON_9,NT_1,SC_17) ...
1
vote
0answers
119 views

Arch Linux - make: error while loading shared libraries: libunistring

I keep getting this same error when trying to install various packages: make: error while loading shared libraries: libunistring.so.0: cannot open shared object file: No such file or directory It's ...
0
votes
1answer
57 views

Make does not work when invoked from a bash script

So i just asked a question : for loop over a list This works perfectly now and outputs what i need. Now i want to link this to a makefile which should be called per variable in my list like this: ...
4
votes
2answers
90 views

How can I catch a command exit code for later, in a Makefile?

I have a makefile, with a test suite target, like so: rcheck: foo This shows the output from the foo command on stdout, and returns an exit code from foo which is handled by make as normal. ...
3
votes
3answers
1k views

Don't stop make'ing if a command fails, but check exit status

I am trying to instruct GNU Make 3.81 to not stop if a command fails (so I prefix the command with -) but I also want to check the exit status on the next command and print a more informative message. ...
-1
votes
1answer
32 views

How is the linking mechanism so fast in the kernel system calls? [closed]

If I open any file in Linux kernel almost every file has many extern functions and many #indef or #ifndef macros so while compiling how exactly does it map all the functions and macros when more than ...
0
votes
0answers
37 views

Problems with kerrighed

I heard about kerrighed and i want to use it for rendering with blender because it is a single system image. I tried to install it over pxe like the installation guide from kerrighed.org says. The ...
1
vote
2answers
143 views

sed:can't read /usr/lib/libltdl.a:No such file or directory

I tried to install the package libgraph but while executing make it says that justin@justin-HP-Pavilion-g6-Notebook-PC ~/Downloads/libgraph-1.0.1 $ make Makefile:781: warning: overriding commands for ...
0
votes
0answers
60 views

cannot locate header while making buildworld in custom kernel source

I'm trying to install a custom kernel in freebsd and here's step I followed: install freebsd 9.1 on vm from the image get the source from hardenedBSD (branch hardened/9/kernsep) execute "make ...
0
votes
0answers
654 views

“Makefile:29: recipe for target 'siplib.o' failed” - SIP installation

I'm trying to install SIP 4.16.5 for Python 3.4 on Ubuntu GNOME 14.10. I type python3 configure.py and I get the following: This is SIP 4.16.5 for Python 3.4.2 on linux. The SIP code generator will ...
0
votes
0answers
41 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
0answers
36 views

How to change CFLAGS for autogen.sh

I am relatively new to linux. I was trying to rebuild MDM display manager for linux mint from url https://github.com/linuxmint/mdm. In the documentation it is said that you should use ./autogen.sh ...
0
votes
2answers
214 views

which packages are required to use make?

I try to compile a package on a fresh debian wheezy inside a VM (32bit Kernel): cd /tmp/ wget https://github.com/freifunk-gluon/batman-adv-legacy/archive/master.zip rm -Rf batman-adv-legacy-master ...
1
vote
0answers
20 views

How to define ffmpeg's path during compilation of another software?

I'm trying to compile an opensource software that needs bleeding-edge ffmpeg, so I successfully compiled ffmpeg, but I don't want to run make install as it's not easy to be removed after my tests. ...
1
vote
2answers
136 views

Makefile make install not executing multiple line commands

I have a Makefile that contains an install section to allow me to make install after building the source code. The install section contains two lines of shell commands: install: /usr/local/lib cp ...
0
votes
1answer
21 views

How to tell the compiler to search some libs inside /usr/lib/x86_64-linux-gnu

I try to compile a project, I got the source files from git hub. But when I launch make, the compilation complains that the dependency on wayland-server is not met. However, I have wayland ...
1
vote
1answer
48 views

Difference between sudo make and sudo -s ; make

What are the differences between sudo make and sudo -s make First example do not work with my software, there is always a header file missing. Login as root with sudo -s and compile works fine. ...
14
votes
1answer
3k views

What happens in each step of the Linux kernel-building process?

I've read many tutorials about how to build custom kernels and boot Ubuntu using those kernels, and successfully followed the guides and booted custom kernels, but I have no understanding about what ...
5
votes
1answer
304 views

Strange behavior automating with “make -f”

I have a set of directories, some of which contain makefiles, and some of the makefiles have clean targets. In the parent directory, I have a simple script: #!/bin/bash for f in *; do if [[ ...
2
votes
1answer
12k views

make fatal error: openssl/sha.h: No such file or directory

I'm trying to compile a program that, according to the documentation, requires the "OpenSSL library". I have OpenSSL installed, and it's still giving me the error openssl/sha.h: No such file or ...
0
votes
0answers
24 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. ...
4
votes
2answers
394 views

Compiler cannot find header file, do I add the directory to PATH?

I am trying to work with gtk which is located at /usr/include/gtk-3.0/gtk/ .., but all of the header files in the toolkit have #include <gtk/gtk.h>. Aside from adding /usr/local/gtk-3.0 to ...
2
votes
1answer
225 views

bmake error on Mandrive: “bmake: no system rules (sys.mk)”

I'm trying to use bmake to build OS161 on Mandriva. When I try to run bmake, I get the following error: bmake: no system rules (sys.mk) I get the same error, even when I run bmake -m ...
1
vote
1answer
199 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 ...
-1
votes
1answer
65 views

Run a server and client in a makefile [closed]

I'm coding a socket file server in C++, and I can't figure out how to put proper unit testing into my makefile. My problem is as follows: The server, when started, spits out its port number to ...