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

learn more… | top users | synonyms (1)

3
votes
1answer
909 views

Error compiling FTDI VCP drivers: Cannot find version.h

driver installation fails of FTDI VCP driver during make install. Running ElementaryOS with kernel 3.11.0-14-generic make install awk: cannot open ...
3
votes
1answer
519 views

How to save the results from ls to a command?

I want the results from an ls to be saved in a var inside a makefile the command is simply the following: ls text* and the result suppose to be something like : text1.txt What i put in my script ...
3
votes
1answer
154 views

unresolved dependencies of bz* files for rpm make from source

I am trying to do a build of rpm from source. I got through the ./configure and ran through a good chunk of make. Unfortunately I keeping getting stopped up on undefined references to bzerror, ...
3
votes
1answer
129 views

Why doesn't 'ar' work like the manpage says?

I'm trying to use 'ar' included in Debian Wheezy armel version of binutils and it doesn't seem to operate like on other systems I've encountered. Some sample output from the command-line: $ ar ...
3
votes
1answer
222 views

Make Completion Progress Script

Any time I'm executing a build process that takes several hours, I inevitably stare at my terminal and wonder, "how much longer?" Sometimes, I manually pick up on some pathname echoed to the terminal ...
3
votes
1answer
3k 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 \ ...
3
votes
0answers
131 views

Why is this autogen.sh script failing?

I've downloaded this window manager from github and it has a autogen.sh script but it failed each time. I don't know what could happen or how to fix it: Output from ./autogen.sh: ...
3
votes
0answers
153 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 ...
3
votes
2answers
419 views

Make problem with includes [closed]

I am installing imagick-v3.1.0RC2 package on CentOS 5.5. I have ImageMagick 6.7.9-9 installed as well and have a problem on the make step. Problem is that its cannot find included file: ...
2
votes
2answers
527 views

In Linux, is 'make folder/path/clean' same as running 'make clean' command in folder/path?

I'm new to Linux, more so for Makefile. In Linux, is 'make folder/path/clean' same as running 'make clean' command in folder/path/? (folder/path/ refers to an arbitrary directory.) Apart from this ...
2
votes
2answers
464 views

What do $@ and $< in a makefile mean?

I am seeing a makefile and it has the symbols $@ and $< in it. I have never seen them, and Google does not show any results about them. Do you know what these commands do?
2
votes
2answers
8k views

fatal error: linux/smp_lock.h: No such file or directory

I'm trying to build some drivers for a TV tuner and I am getting this error when I build: make -s -C /lib/modules/3.2.0-23-generic/build SUBDIRS=/home/jtp/IT9135_SRC modules In file included from ...
2
votes
3answers
7k views

Difference between “make install” and “sudo make install”

Sometimes I encounter problems with using make install which gives me a permission denied error when writing to some folders. So instinctively I use sudo make install. Will this introduce additional ...
2
votes
1answer
7k 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 ...
2
votes
1answer
2k views

Why does 'make' complain about a missing rule when I try to build a program from source?

I am a Linux novice, and I am attempting to compile scientific software called DL_POLY_Classic. I downloaded the zip file dl_class_1.6.tar.gz and unzipped it using the command tar xvzf ...
2
votes
2answers
1k 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 ...
2
votes
1answer
74 views

What Did Users Do or Use Before the Make Command?

I use Gentoo as my primary home Desktop OS. I have since ~2004. I appreciate the emerge command for managing a source based OS as well as it does. Every now and then I check on other distributions, ...
2
votes
1answer
168 views

What does make[number] mean in make V=s?

When I enable make V=s to read the full log of make. I always see make[numer] in the log. e.g: datle@debian:~/workspace/cpx/trunk$ make rm -rf openwrt/tmp cp config/defaut.config openwrt/.config cd ...
2
votes
2answers
204 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 ...
2
votes
2answers
1k views

When running sudo make install environment variables are not passed

I have problems with using pkg-config in a Makefile, while running in sudo mode. I need to have PKG_CONFIG_PATH set for pkg-config to find geany.pc file that is held in /usr/local/lib/pkgconfig. If I ...
2
votes
2answers
510 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 ...
2
votes
2answers
555 views

Writing a makefile to install manual pages for a library

If I have a C library, let's say "apple", and "apple" contains functions "banana" and "carrot", how do I write the "install" line in the makefile so that "man banana" brings up the manual page for the ...
2
votes
1answer
186 views

Debian packaging with dependency (from the scratch)

I would like to package my software (in C) into a .deb file, but I encounter some difficulties. It would be nice if someone could give me a hand... Let the source code be the following toy example: ...
2
votes
4answers
206 views

How Can I Change the Default arguments to gcc When I run Make “filename”

Forgive me if I posted this in the wrong Stack. Every time I run make for a file without any Makefiles in the directory, make still works and compiles the source code but only with the arguments: gcc ...
2
votes
1answer
159 views

compiling PHP fails cause of libpcre

I'm trying to compile PHP myself as I want to use PHPBrew to switch between multiple versions of PHP. I already solved a ton of problems in the process, but with this particular one I can't get any ...
2
votes
4answers
840 views

Uninstalling Software Built from Source [duplicate]

How can you uninstall software that was built and installed from source? (Using make install?)
2
votes
1answer
126 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 ...
2
votes
1answer
101 views

To write this Pseudocode with Regex

I am doing a Makefile which I run regularly by Crontab every day at 0230 crontab -e; 30 2 * * * /bin/thePseudocode Python-like Pseudocode directories = ["Cardiology", "Rheumatology", "Surgery"] ...
2
votes
3answers
55 views

Hide make targets from shell when users autocomplete in bash

Is there a way to flag some targets in a Makefile so that they don't appear at all in the shell when the user types make and then presses Tab ? I am having a Makefile with too many recipes and I don't ...
2
votes
1answer
58 views

LFS-7.5 util-linux `make check` fails

When I run make check in util-linux, it fails saying: 3 tests of 127 FAILED According to LFS - 7.5 test logs found here, 2 tests fail and that is acceptable. But my cal command fails while ...
2
votes
1answer
60 views

How can you avoid clobbering configuration files when installing with make

When using the autotools build system and installing with make install how is it possible to avoid clobbering existing configuration files? I've defined a configuration file in a Makefile.am like so: ...
2
votes
1answer
1k 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: ...
2
votes
2answers
324 views

How do I recursively apply PKGREPOSITORY when calling make package-recursive in FreeBSD?

I'm trying to create a package of Apache and its dependencies: sudo make package-recursive \ __MAKE_CONF=~/make.apache22.conf \ PKGREPSOITORY=/usr/home/gvkv Everything works fine; Apache and its ...
2
votes
1answer
93 views

ld cannot find -lQt5Multimedia

I'm trying to build BBQScreen for Linux. During the make process, I get the following error: g++ -m64 -o Linux/BBQScreenClient2 debug/main.o debug/mainwindow.o debug/screenform.o ...
2
votes
1answer
77 views

Restricting GNU‑Make to POSIX Make behaviour

Is there a known way to make Linux's make reject unintended use of GNU‑Make specific extensions in Makefile when editing or using other's Makefile in Linux? I mean, restricting GNU‑Make to behave as ...
2
votes
2answers
2k views

Where does make defconfig get its configuration in OpenWrt?

I am compiling an image for wifi devices using OpenWrt. Following the instruction I copy a simple .config file to TOP-DIR. CONFIG_TARGET_ar71xx=y CONFIG_TARGET_ar71xx_generic=y ...
2
votes
1answer
41 views

Using a make rule to call another

I am writing a LaTeX project that I am using a makefile for. I have a clean function to clean the excess LaTeX files: .PHONY: clean clean: \rm *.aux *.blg *.out *.bbl *.log But in some cases I ...
2
votes
1answer
104 views

makefile uses same receipe for multiple targets

i love this makefile but if i call 'all' or 'lab4' it will -o the name 'lab4' but build using the dbug receipe. if i call 'dbug' it will -o 'dbug' and use dbug receipe. what am i doing wrong? i stole ...
2
votes
1answer
2k views

modules make: *** /lib/modules/3.7-trunk-amd64/build: No such file or directory

I need to install Kali Linux updates without Internet access on my laptop. I think I need to do this because I'm trying to install the WiFi driver but I get an error when I try to make: make ...
2
votes
2answers
47 views

Makefile idiom to install to the first available directory

I have a Makefile which, among other things, installs a Bash completion script: install [...] /etc/bash_completion.d/ This works fine in Ubuntu, but in Arch Bash completions are installed to ...
2
votes
1answer
203 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 ...
2
votes
1answer
171 views

Installing GNU Make on ChromeOS

Playing around with the new Chromebook, was trying to get Make working to the end of installing other software. However, can't seem to get Make anywhere near to install; ./configure doesn't generate ...
2
votes
1answer
103 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 ...
2
votes
1answer
617 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 ...
2
votes
0answers
152 views

Trouble embedding clang in a standalone application

I am running Ubuntu 13.04 on my end and I have installed clang as well as libclang-dev and llvm (through apt). I tried hard to run RecursiveASTVisitor example given here:- ...
2
votes
1answer
1k views

How to install Mono v3+ in Ubuntu?

How can I install the latest release of Mono in Ubuntu Saucy? In order to develop in a free OS, I need to setup Mono (that now supports .NET 4.5). This is what I did: Download and uncompress ...
2
votes
0answers
161 views

Binutils documentation compilation problem

I'm trying to compile and install binutils+GCC for my machine on my own. I have compiled lastest binutils sources without getting any error, but installation seems to have some problems with gas ...
2
votes
1answer
479 views

gcc make install error [closed]

I'm trying to compile gcc with make install to a drive wich is an linux from scrach bulid to a directory called tools and it gives me this: make[1]: Entering directory `/media/BOSS/sources/gcc-build' ...
2
votes
0answers
68 views

Nested packages for different subdirectories in autoconf?

I have different subdirectories that need to be compiled in different ways. For example, some files needs to include some others using CFLAGS. However, CFLAGS can only be set in configuration files, ...
2
votes
0answers
133 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 ...