multiple-makefiles

Create a makefile for multiple OSes, this make (ext?) doesn't work?

I have a working makefile that builds with mingw32. Now i renamed that makefile to Makefile.w32 (source -> http://pastie.org/319964) Now i have a Makefile with the following. The problem is, it does not build my source all: make mingw32 clean: @echo "causes an infinite loop -> make mingw32 clean" mingw32: @echo "yeahhhhhh...

makefile calling makefile error

I have a working make, I have platform code and like several makes for each os in the folder. Right now I have one makefile which works. I renamed it to Makefile.ws and wrote this in Makefile all: make -f Makefile.w32 clean: make -f Makefile.w32 clean I ran it and got this error > "make" make -f Makefile.w32 make[1]: Enteri...

How do I check dependencies when invoking a sub-make to build when there are changes?

If I have a makefile that calls another makefile, how to I get the master makefile to correctly check if the dependencies of the subordinate makefile have changed? For example, if I have the rule server: @cd $(SERVERDIR) && $(MAKE) That invokes make in the subdirectory in which I build an executable "server". However, if I chang...

Make failure in subdirectory make not stopping build

I have a setup where make is going through a bunch of subdirectories and making inside those directories. I would like it to stop the build on a failure immediately. The code snippet below illustrates this. Can someone point me in the right direction on how the makefile should be set up or some documentation about building from a top ...

Need Help w/ Annoying Makefile Errors -- g++: g++ and shell errors -- and Multi-Makefile Design Advice

I have a makefile: #Nice, wonderful makefile written by Jason CC=g++ CFLAGS=-c -Wall BASE_DIR:=. SOURCE_DIR:=$(BASE_DIR)/source BUILD_DIR:=$(BASE_DIR)/build TEST_DIR:=$(BASE_DIR)/build/tests MAKEFILE_DIR:=$(BASE_DIR)/makefiles DATA_DIR:=$(BASE_DIR)/data DATA_DIR_TESTS:=$(DATA_DIR)/tests MOLECULE_UT_SOURCES := $(SOURCE_DIR)/molecule_tes...

Is there a Make debugger? I need to figure out someone else's makefile.

I need to add some capabilities to very complex, multi-layered makefile (lots of include files, lots of targets, lots of variables) that was written by someone else who of course is no longer with the company. There are some folks here who understand some of it, but not the whole thing. Is there a Make debugger where I can single-step ...