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

learn more… | top users | synonyms (1)

4
votes
2answers
613 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
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 ...
3
votes
1answer
382 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
313 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 ...
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 ...
1
vote
1answer
148 views

Make errors when compiling hulahop

When I cloned hulahop I had a few possibilities to install it. I have chosen the path with autogen.sh I used commands: $ sh autogen.sh # -> OK $ ./configure # -> OK But make fails: $ ...
4
votes
3answers
682 views

What is a subshell (in the context of the documentation of make)?

I'm reading a book about the make command and there is a paragraph: If any of the prerequisites has an associated rule, make attempts to update those first. Next, the target file is considered. ...
5
votes
4answers
274 views

How to send stderr to stdout with a pipe to another command?

I'm trying to capture all of the output of a build operation, and send it to myprogram. I seem to only be able to capture part of it. This is what I'm trying: make clean && make ...
8
votes
2answers
8k views

How to include local header files in linux kernel module

Say I have a module mymod with source files as follows: src/mod/mymod.c src/inc/mymod.h I try to include mymod.h as follows #include <mymod.h> My makefile contains EXTRA_CFLAGS= ...
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 ...
1
vote
2answers
795 views

Ocaml compilation error in AIX 6.1

I meet the following error when I try to compile Ocaml on my server running AIX 6.1 : "../Makefile.shared", line 39: make: 1254-055 Dependency line needs colon or double colon operator. ...
9
votes
1answer
23k views

Where can I find a list of 'make' error codes?

I am trying to compile a program written in Fortran using make (I have a Makefile and, while in the directory containing the Makefile, I type the command $ make target, where "target" is a ...
1
vote
1answer
80 views

What do I install into a given install prefix

Which directories should I expect to have in an install prefix when I'm writing makefiles? I've noticed that in the common prefix /usr, there is no /etc, yet there is an /include dir, which isn't in ...
0
votes
3answers
241 views

Building from Source on CentOS 5 or newer

I've got a few applications of which I've got to build from source files in order to make it work on CentOS (the programs do not exist in the yum repos). I may be missing something, but unlike Debian ...
4
votes
4answers
148 views

Make mistakenly thinks rule succeeded because of 0-sized file generated by output redirect

In a makefile, I have several rules that look like this: out.txt: foo.sh input.txt ./foo.sh -i input.txt > out.txt If foo.sh fails, then out.txt will be created as a 0-sized file. If I run ...
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, ...
1
vote
2answers
1k views

Cannot find libgmp when compiling GCC 4.5.2

I'm attempting to compile GCC 4.5.2 as part of the Linux from Scratch book (http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html). My configure is as follows: ./configure \ ...
-2
votes
1answer
125 views

Can you explain me about following make file of “lc” tool [duplicate]

Possible Duplicate: how to build lc tool in linux? SHELL=/bin/sh CC=cc # Objects we link together. OBJ=lc.o get.o all: $(OBJ) $(CC) -o lc $(OBJ) lc.o: lc.c lc.h ...
1
vote
1answer
165 views

configure not adding line-continuation characters to makefile

This is, perhaps, a bit of a bizarre one but I don't even know where to start looking so if anyone can point me in the right direction, I'll be very grateful. I've just done a fresh install of my ...
0
votes
1answer
2k views

Something to convert a makefile.am to project in Visual Studio (2005)

I'm interested in porting a library to Windows so that I can contribute to this library's project. This library has a Makefile.am, and I can sort of figure out how the library should be built (but I'm ...
5
votes
2answers
688 views

How to buld with MAKE and only --silent output on screen, but get full output to log file

How can I redirect output from MAKE i such a way that I get only --silent output to screen, but full MAKE-output to a log file? Or can this be achieved through some sdout/stderr redirection magic?
4
votes
2answers
768 views

Forcing GNU make to run commands in order

With the following Makefile, GNU make runs the two commands in parallel. Since the first one takes time to finish, rm *.log is run before the log file is created, and fails. dummy.pdf: dummy.tex ...
0
votes
1answer
479 views

Make failing while trying to install SoX (spectrogram - libpng)

I'm trying to install SoX, and get through configure fine, but it fails on make with the following: /bin/sh ../libtool --silent --tag=CC --silent --mode=compile gcc -DHAVE_CONFIG_H -I. ...
2
votes
2answers
2k views

How to change the install path of my Linux Source tree?

I was trying to bring up my custom kernel. I did the following : $ make menuconfig && make modules && make modules_install && make install I would like to change the ...
4
votes
2answers
622 views

upgrade xdebug without using apt?

I'm running debian 5.0.6 and have installed xdebug 2.0.3 via aptitude. Now I want to install PHPUnit, and when trying to do it through pear, I get the error that PHPUnit wants a more recent xdebug ...
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 ...