make

Why does make think the target is up to date?

This is my Makefile: REBAR=./rebar REBAR_COMPILE=$(REBAR) get-deps compile all: compile compile: $(REBAR_COMPILE) test: $(REBAR_COMPILE) skip_deps=true eunit clean: -rm -rf deps ebin priv doc/* docs: $(REBAR_COMPILE) doc ifeq ($(wildcard dialyzer/sqlite3.plt),) static: $(REBAR_COMPILE) build_plt analyze else st...

makefile aliases

Possible Duplicate: makefile aliases Please explain $@ $^ in the makefile below LIBS = -lkernel32 -luser32 -lgdi32 -lopengl32 CFLAGS = -Wall # (This should be the actual list of C files) SRC=$(wildcard '*.c') test: $(SRC) gcc -o $@ $^ $(CFLAGS) $(LIBS) ...

I want to remove php-5.3. completely from my machine after make it from source.

I want to remove php-5.3. completely from my machine after make it from source. how can this be done? When i try make uninstall i get: make: * No rule to make target `uninstall'. Stop. Thanks. ...

makefile extension

Hi, I'm writing a C program using gcc in cygwin. My question is, how do you create a makefile? I mean, what file-extension does it have? I know how to write simple rules, but I can't save a file in the text-editor with the right extension? Impossible to find any info about this... This is prolly a super-newbie question. So let the flami...

Problem with Makefile

Hi, Using the command "make apps", I wanna generate two executables: main_test.exe and main_app2.exe. For some reason, the command to generate main_test.exe is more is less completley ignored when I run the makefile. Finally, I end up with a main_app.exe and main_app2.exe file but there is no main_test.exe file produced. Anyone an idea ...

Automated JNI building

Is there a simple and portable way to build JNI - in particular the C components - with an automated build system such as ant or make (or both, with one calling the other) without having to manually input things like the extension of the final library file or the path to the Java includes folder to the C compiler? ...

Clean up my makefile fragment?

I'm using GNU Make to run scientific data analysis, where we have a bunch of Matlab scripts that ponder some input data and then spit out several files. It does this in a fairly complex way, so I've had to do some nasty Makefile tricks when trying to describe its function to Make. Here's an example: seg_cams_nozero := cam1 cam2 cam3 s...

make doesn't see changes?

Scenario 1: I checked out a project, and made some changes to a source file, and did make, and make sees the changes. Scenario 2: I checked out the project again to different directory (some reasons), copied the modified source file here, and did make and nothing happens, if I run the program, I don't see my changes, make doesn't see...

how do I make a makefile depend on the build options

A long time ago, I remember using some Solaris make, and they had an ingenious option that would automatically detect when the compiler options had changed, and rebuild all rules appropriately. For example, suppose I switch from: g++ -O3 to g++ -g Then all files should be recompiled. I'm using gnu make, and haven't found any featu...

make not working as expected

Hey guys I wrote a makefile which work perfectly fine on my 27" iMac at home running Snow Leopard, however when I uploaded it to my uni's computer, a 24" running Snow Leopard as well, it gets the following: gcc -std=c99 -Wall -pedantic -Werror -c print.c gcc -std=c99 -Wall -pedantic -Werror -c process.c gcc -std=c99 -Wall -pedantic -Wer...

Problem linking vector class

I have a big project with a bunch of .cc files that have mostly c code and some c++ code. I want to use a vector in this program since I need an unbounded data type that is simple to make 2d (in other words I don't want to use an array or a list). The problem is that when I run my make after including the vector class I get errors that I...

How to specify multiple sourcefiles in automake at once

Is there any way around having to specify every sourcefile I create manually in my automake scripts? I've tried several ways of specifying sourcefiles using find -name *.cc or the like. I've also tried finding the list in autoconf and substituting it into the Makefile.am, but automake protested that this is not allowed. If I have to ma...

Installing PostgreSQL on Non-Admin Mac User Account

Simple question here. Quote from the PostgreSQL Getting Started guide: PostgreSQL can be installed by any unprivileged user; no superuser (root) access is required. Instructions on the PostgreSQL Installation Procedure: ./configure gmake su gmake install ... Notice that 'su' in there? It requires superuser access. ...

Mingw and make variables

I'm trying to compile an open source project on windows under mingw/msys. The makefile contains (among others) this line @${MAKE} --no-print-directory -C . -f physfs.make physfs.make contains (among others) these lines: ifndef CC CC = gcc endif when I ran make I get the following error: Creating obj/Debug/physfs physfs.c make[1...

redirecting complete make output to a file

Hi I want to redirect complete make output to a file. I tried redirecting the stdout and stderr with the following command: make >aks_file.txt 2>&1 & But that is not redirecting the EXACT complete output which is otherwise generated by issuing just make (some lines are missing) Am I missing something? ...

How can I avoid 'make install' when building PHP in Unix environment?

I'm attempting to rapidly deploy a PHP application under apache2/PHP on a Unix host. The sysadmin hasn't heard of PHP so I'm looking to build/install myself. Unfortunately root access is two weeks of bureaucracy away so I'm looking for a way to use PHP and its requisite libxml2 without installing. ...

Using GNU Make to build both debug and release targets at the same time

I'm working on a medium sized project which contains several libraries with interdependence's which I've recently converted over to build using a non-recursive makefile. My next goal is to enable building of both debug and release builds out of the same source tree at the same time (make debug;make release). My first step was to make d...

Correct way to call some make targets depending on the value of environment variable?

I should create several packages of our application using make(on AIX). Content of packages should be different depending on one environment variable. Somethink like - if environment variable WITH_CPP set to "Y" then c++ part of application should be built and packed to installation package. If environment variable WITH_CPP set to "N" th...

How to get Qt-Creator to build using cygwin make?

Does anyone know how to configure Qt-Creator to use cygwin's make to build a project? Maybe this is a simple cygwin-mangled Windows path problem, but I can't get Qt-Creator to find/run cygwin's make. My make lives in /usr/bin, which is actually c:\cygwin\c\usr\bin on my system. Either way, Qt can't seem to find it using all the obviou...

make problem with mingw

Hello all, I have a small problem with make and mingw. I usually use Linux and I am not really familiar with windows way of doing. C:\MingGW\bin is in my path (I can launch directly g++ or sh by the windows command line) but when I try to type make I have the following error : make: g++: command not found I do not know which make is...