Top "Makefile" questions

A makefile is an input file for the build control language/tool make.

How do I check if file exists in Makefile so I can delete it?

In the clean section of my Makefile I am trying to check if the file exists before deleting permanently. I …

makefile
Make install, but not to default directories?

I want to run 'make install' so I have everything I need, but I'd like it to install the things …

linux gcc makefile autotools
How to use shell commands in Makefile

I'm trying to use the result of ls in other commands (e.g. echo, rsync): all: <Building, creating some .…

bash makefile echo
What are Makefile.am and Makefile.in?

These two files are mostly seen in open source projects. What are they for, and how do they work?

makefile autotools automake
How to compile makefile using MinGW?

I'm new to this. Just wanted to ask how to compile a makefile. I am using MinGW compiler in C …

c compiler-construction makefile mingw
How to set child process' environment variable in Makefile

I would like to change this Makefile: SHELL := /bin/bash PATH := node_modules/.bin:$(PATH) boot: @supervisor \ --harmony \ --watch etc,…

shell makefile environment-variables target
Where can I find "make" program for Mac OS X Lion?

Just upgraded my computer to Mac OS X Lion and went to terminal and typed "make" but it says: -bash: …

macos makefile osx-lion
How to assign the output of a command to a Makefile variable

I need to execute some make rules conditionally, only if the Python installed is greater than a certain version (say 2.5). …

shell makefile
Make error: missing separator

I am getting the following error running make: Makefile:168: *** missing separator. Stop. What is causing this?

makefile
If conditions in a Makefile, inside a target

I'm trying to setup a Makefile that will search and copy some files (if-else condition) and I can't figure out …

if-statement makefile target