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

learn more… | top users | synonyms (1)

1
vote
1answer
176 views

What is the default jobs argument for make?

How many jobs does make use by default when you don't pass it the -j flag?
2
votes
1answer
692 views

Makefile $wildcard only matches top directory

I am trying to implement a makefile for my C project which has a directory structure as follows: PROJECT_FOLDER: folder1 folder2 folder // n number of folders main.c FOLDER1: ...
0
votes
1answer
356 views

Unable to install libevent without admin priviledges

I just downloaded libevent-2.0.21-stable, which I am hoping to compile so that I can use tmux. However, when I run: ./configure --prefix=/path/to/libevent-2.0.21-stable/ make make install ...
0
votes
0answers
182 views

Installing XSP on CentOS

Trying to install xsp-2.10.2. Worked fine in the past, now getting this error. Making install in Mono.WebServer mkdir: cannot create directory `2.0': File exists GMCS /out:2.0/Mono.WebServer2.dll ...
2
votes
0answers
100 views

Trying to install DIP (Dialup Networking) package for SLIP protocol

We are trying to interface with a wireless modem that connects to a computer via a com-port DB-9 connection. It uses SLIP in the sense that the modem hosts a SLIP server and requires the interfacing ...
0
votes
1answer
1k views

make: *** No targets. Stop while building linux kernel module [closed]

I am just trying to learn how to driver modules for Linux Kernel. I followed Linux Device drivers 3rd edition book and started my work. I created a sample program and makefile. Please find my makefile ...
2
votes
1answer
199 views

gedit: tabs or spaces dependent on syntax

I almost always use the Insert spaces instead of tabs feature in gedit. The one exception is when writing a Makefile which requires tabs. I don't suppose there is a way to make this option dependent ...
2
votes
1answer
134 views

How can I copy a git repo from a Makefile?

I'm writing a Makefile to sync my local dotfiles with GitHub. I recently decided to also add my .vim folder to the repo. But when trying to copy the .vim folder I keep getting a Permission denied ...
3
votes
0answers
124 views

What steps are involved in porting an Xorg OpenGL app to DirectFB?

I'm looking for a birds-eye view on porting a small app1 that uses some OpenGL functions from it's home on Xorg to run in a more stand-alone fashion using DirectFB. I am unfamiliar with both C and ...
5
votes
3answers
652 views

Installing from source. How to resolve dependencies without destroying the package manager.

I don't consider myself a total noob, but compiling and installing software is a pain and problem I cannot overcome. I just want to run down through my understanding of this process with someone more ...
1
vote
0answers
577 views

CFLAGS in Linux kernel makefiles: which one is used when?

I'm not familiar with Makefiles, I can kinda understand them, but with the Linux Kernel I have a question. (Using 3.7.1, Patched with BFS so line numbers may be a bit off) On line 248 HOSTCFLAGS ...
1
vote
3answers
220 views

I want to run commands like make, make install, python setup install without changing directories

I have written a script which will download software from the internet to the current user's home directory and then untar it. And then I have to make and make install it and in some software I have ...
0
votes
1answer
523 views

make install - how to use wget, not curl

I do not have root access on my Ubuntu but want to install git. I was following this tutorial but when running make or make install it says curl is not installed. Can I use wget instead if this is a ...
29
votes
4answers
14k 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 ...
1
vote
3answers
928 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 ...
1
vote
1answer
281 views

linux-sunxi - make failed, undefined references clk_*

I try to build uImage for linux-sunxi on a Debian box, which is prepared like this (How To Build Debian From Source Code for Mele): apt-get install emdebian-archive-keyring apt-get install ...
0
votes
1answer
709 views

Building monotools-server, gtk+, pango - bizarre path issues

I'm attempting to build the monotools-server app from source. After days of hunting down missing dependencies (and in one case (xsp) having to manually modify a generated Makefile to remove a ...
0
votes
2answers
62 views

How come “make install” can only be done on my target?

I have been given a customized kernel by a customer and asked to build it using the following commands: make sudo su make modules_install make install This has to be done on my host machine, ...
1
vote
0answers
319 views

Make and apt-get Have Stopped Working

So I downloaded the non-free broadcom driver(b44) for my debian install, however when I try to make it I get the following error: make make -C /lib/modules/2.6.32-5-amd64/build ...
13
votes
4answers
2k views

Why people recommend the -j3 option for make when having a dual-core CPU?

In Gentoo Linux it is possible to set the MAKEOPTS variable in /etc/portage/make.conf to tell make how many jobs it should run in parallel when building packages. Since I have a dual-core CPU, I ...
-1
votes
2answers
1k views

Building Qt: 'make clean' causes everything to get recompiled?

(This applies to Qt versions >= 4.7.3.) I made an attempt to build Qt with custom parameters on my Debian box and it actually took AGES to compile (IIRC more than 6 hours on a single-core CPU). That's ...
2
votes
1answer
84 views

Build Gimp from custom-path libraries

I'm installing Gimp (2.6.10) on Debian. The system has all the required libraries (dependencies) installed in the default directories, so giving to Gimp ./configure && make && make ...
1
vote
1answer
72 views

help installing checkinstall locally

I'm trying to install checkinstall locally in my home directory. Though, in the INSTALL file is only described how to do a system wide installation: Simple enough: make su make install checkinstall ...
0
votes
2answers
535 views

If I run ./configure, then make again, then will it ruin things if I want to run make a 2nd time?

http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Quick-Instructions.html#Quick-Instructions is what I'm trying to install. Anyways, I ran ./configure and make but then I ran make ...
0
votes
1answer
1k views

Looping over directory entries in bash and saving to an array

(See update at the foot of the question). This is a followup question to "Make directory copies using find". This question involved manipulating a bunch of directories, This got too complicated to ...
2
votes
0answers
566 views

libbfd-2.22.so missing while compiling Binutils/Glibc/Zlib

When I try to compile Binutils, Glibc and Zlib using chroot on my LFS system, I get this error: ar: error while loading shared libraries: libbfd-2.22.so: cannot open shared object file: No such ...
2
votes
2answers
396 views

.DELETE_ON_ERROR behavior with make and pipelines

The .DELETE_ON_ERROR target will tell make to delete a target if a rule fails. But this doesn't work for pipelines, because the exit status value $? holds the value of the last program in the ...
8
votes
4answers
532 views

What could be causing make to hang when compiling on multiple cores?

Yesterday I was trying to compile the ROOT package from source. Since I was compiling it on a 6 core monster machine, I decided to go ahead and build using multiple cores using make -j 6. The ...
2
votes
2answers
642 views

Makefile compiles unchanged files

Made an effort to get the object files in another directory, but that directory would otherwise reflect the source directory tree. Got that to work, but there is a missing piece at the $(OBJ): line ...
6
votes
1answer
214 views

Are there any CheckInstall side effects or should I use it every time?

I'm using Ubuntu at work and Slackware at home. Today at work I have downloaded some suspicious program from our company repository that was supposed to automate some repetitive tasks. I installed ...
2
votes
0answers
132 views

What went wrong with this driver install?

I am trying to install the correct LAN card drivers on openSuse 12.1. This is the output of the log file for the autorun.sh script: ------------------------------- Sun Jul 1 21:50:45 IDT 2012 ...
1
vote
0answers
282 views

error: implicit declaration of function ‘rt_dev_socket’

The developer says: http://comments.gmane.org/gmane.linux.real-time.rtnet.user/2546 Now how can I tell the Makefile to look for headers in /usr/local/rtnet/include respectively ...
4
votes
2answers
640 views

Do GNUmakefile, GNUmakefile.am, and GNUmakefile.in indicate that Automake has been used?

The source folder of rtnet contains only the above mentioned files for compilation purposes. Remaining files are the source code of the examples. Question is that do these files indicate that they ...
2
votes
1answer
544 views

pysvn fails to make due to -lneon not found?

I am trying to install pysvn on my CentOS server and it says that -lneon is gone. After searching their mailing lists for a bit I found what neon means but it doesn't say how can I get it? Here's my ...
3
votes
1answer
2k views

Why can't ld find this library?

I'm not very knowledgeable on this topic, and therefore can't figure out why the following command does not work: $ gfortran -o dsimpletest -O dsimpletest.o ../lib/libdmumps.a \ ...
4
votes
1answer
224 views

Configure vim's :make to switch or open tabs on error

When I run :make from vim and there's an error, it opens that file on the error line number in the current buffer. If possible, I would prefer it switch tabs to the file if it's already open, or make ...
1
vote
0answers
506 views

ssh: “Error reading response length from authentication socket”

I have a Makefile with some ssh and rsync commands. All of them are executed correctly, but give the following error message: Error reading response length from authentication socket. I don't like ...
1
vote
2answers
283 views

How to install LuaJIT on FreeBSD without using Gmake?

Has anyone been able to install LuaJIT v2 on FreeBSD AMD64(x64) without using Gmake (just freebsd-make)? If so how? When I attempt to use freebsd-make, LuaJIT doesn't build.
1
vote
1answer
1k views

Does `make install` overwrite files?

I've taken some time to install a newer version of Apache2.x on my Mac Os X 10.6.8. When configuring apache through ./configure I specified the Darwin layout. This layout assumes the path setup of ...
3
votes
1answer
52 views

Compiling software with the same options as a previous install

I want to compile and install a software on a new VM. The software was installed successfully on a different VM by a different admin, but I want to duplicate the exact command with the options that he ...
1
vote
1answer
553 views

Install newer version of application in $HOME without root access and linking to installed app

I am new to installing application from source and just learning the best practices to do so. I have this linux box without root access with a quite old emacs, so I downloaded the latest version and ...
0
votes
1answer
653 views

Why is this make file not working?

I have tried to simplify this makefile to the bare minimum, but cannot get it to use an executable to convert one type of file to another if the timestamps have changed. I'm sure there is a stupidly ...
1
vote
1answer
168 views

Compiling a kernel module with some options

I have a bug in a driver (iwlwifi/iwlagn), which I have reported, and the developers are asking me to "build the driver with debug options enabled." More specifically: Debugging output is enabled ...
1
vote
1answer
564 views

Autocompletion for Makefile rules in tcsh

I'm using tcsh in a SUSE 11 box and I realized that when typing makeTab it allows me to auto-complete the rules available within the Makefile, not the files that are inside the current directory. ...
4
votes
2answers
1k views

Get top-level directory from makefile variable

What is the simplest code to get the top-level directory part of a makefile variable? Example: BUILD_DIR = dir/subdir/.../sub-a-dub-dir distclean: rm -rf <some code which evaluates to ...
2
votes
1answer
116 views

How to write makefile for bulk processing?

I have some files in a folder source. I want to process them using program program and output them into folder target just by typing $ make How should I write a makefile for this? Directory ...
4
votes
2answers
465 views

Replace one line with STDIN in a Makefile

One Makefile target is supposed to be in charge of: grabbing the output of $ perl Markdown.pl src/index.md (markdown to html) using that string to replace one line, something like CONTENT ...
6
votes
4answers
1k 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 ...
3
votes
1answer
303 views

How to change the compiler settings with AutoMake?

I want to build a library with a specific tool instead of GCC. The regular build sequence is: ./configure make make install Where should I replace the GCC settings (I think that the configure was ...
1
vote
2answers
227 views

How to avoid “make” redoing a library

I have a project for school. In the root dir, I have 3 subdirs which all have a makefile (because there will be 3 executable files), and there is 1 lib dir. This dir contains my library source files ...