🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #17469

Re: make (segundo intento)

#17469
From: batsman batsman
Date: Sun, 02 Jan 2000 00:00
49 lines
2524 bytes
-----BEGIN PGP SIGNED MESSAGE-----

In article <slrn86stlu.6l.jsuarez@cachonero.org>, Jaime Suarez wrote:
>Como el mensaje anterior no recibi� respuesta (o al menos no me lleg�
>ninguna) voy a intentarlo otra vez porque me hace falta.
>
>�Como consigo que make se encargue de compilar cuando sea necesario, unos
>ficheros con extensi�n .x para generar otros de extensi�n .y que adem�s est�n
>situados en otro directorio?

No manejo demasiado el make (casi todo se lo dejo a automake & c�a), pero
tal vez con algo as�:

SRCDIR=/bla
OBJDIR=$(SRCDIR)/obj
COMANDO=compilar

OBJECTS=$(OBJDIR)/epi.y $(OBJDIR)/blas.y

all: OBJECTS

%.y: %.x
        $(COMANDO) $(SRCDIR)/$< -o $@


A lo mejor te sirve de algo todo eso del VPATH... info make
- -- 
              _           _                             
             | |__   __ _| |_ ___ _ __ ___   __ _ _ __  
             | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
             | |_) | (_| | |_\__ \ | | | | | (_| | | | |
             |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
  ________________________________________________________________
 |Visit   |  http://www.geocities.com/SiliconValley/Vista/2075    |
 |Linux   |  http://www.geocities.com/SiliconValley/Vista/4289    |
  ----------------------------------------------------------------

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQEVAwUBOG9Vzr0Y27yr0iefAQGCUggAiotzW6nXRGeXd5eBNniJGEdNe7WNqKvp
54NPgOYNGglBsyDWaDNZKv8I+3coWLPmC61zcbkDhIar7qspNbpxr4VoNSzTfBtA
w+W5rqbe3ecUT9V6rb7vSHdI5+U8XKTWSo1LcGrAxViI59jjQUjmIvHO4uVha/mT
DcxIOKsfrnYe8ousGJqwqWv6ysfDyAJBvjE9TNqv+hqxzxpGLH0QKUjvse//I4z9
oMTOqOXpBHH5oEh9tOjQmXPZcEeD1xnOGBiyOcMeytXcznwz+H0z6Eu74YdlNbTc
yakvaA9Vm0Kc6LujCRzZH5iG1D/bvvxLr4kDApzSBulz4llX3B2Lpw==
=5zJP
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <jkkn48.eg3.ln@simpsons4ever>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn86stlu.6l.jsuarez@cachonero.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,6d3691db97b9e3b5
X-Google-Attributes: gidf86c8,public
From: batsman@simpsons4ever. (batsman)
Subject: Re: make (segundo intento)
Date: 2000/01/02
Message-ID: <jkkn48.eg3.ln@simpsons4ever>
X-Deja-AN: 567467411
Content-Transfer-Encoding: 8bit
References: <slrn86stlu.6l.jsuarez@cachonero.org>
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@uni2.es
X-Trace: m2newsread.uni2.es 946837272 62.36.24.94 (Sun, 02 Jan 2000 19:21:12 MET)
Organization: Wanadoo
Mime-Version: 1.0
Reply-To: NOSPAMbatsman
NNTP-Posting-Date: Sun, 02 Jan 2000 19:21:12 MET
Newsgroups: es.comp.os.linux.programacion