discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Makefile Question


From: Adam Fedor
Subject: Re: Makefile Question
Date: Sat, 19 Feb 2005 10:55:56 -0700


On Feb 19, 2005, at 10:29 AM, Andrew Ruder wrote:

Matt Rice wrote:

before-all::
     mkdir -p shared_obj/source
to a GNUmakefile.preamble, though theres probably a
better way

First off, this should probably be the .postamble.

But in TalkSoup, I do something like this

before-all::
    $(MKDIRS) $(GNUSTEP_OBJ_DIR)/Controllers/Preferences
    $(MKDIRS) $(GNUSTEP_OBJ_DIR)/Controllers/ConnectionController

I think this is probably better handled using SUBPROJECTS, but it may be a matter of taste. Look in core/back/Source for an example. Basically, in the top-level file you have:

LogTest_SUBPROJECTS = source

and in the source directory, use

SUBPROJECT_NAME=source
source_OBJC_FILES = foo.m bar.m ...
include $(GNUSTEP_MAKEFILES)/subproject.make





reply via email to

[Prev in Thread] Current Thread [Next in Thread]