🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #2370

Re: MakeFile probleempje

#2370
From: Kris Luyten
Date: Fri, 02 Jul 2004 15:55
31 lines
1814 bytes
On Wed, 30 Jun 2004 11:47:58 +0000, Bart Vandewoestyne wrote:

> Om mijn makefile voor mijn LateX documentjes algemeen te houden heb ik een
> target staan dat er als volgt uitziet:
> 
> %.dvi:  %.tex
>         $(LATEX) $<
>         $(BIBTEX) $<
>         $(LATEX) $<
>         $(LATEX) $<
> 
> Het enigste probleem is de BIBTEX regel.  Als ik van een file foobar.tex
> een foobar.dvi wil maken, dan wordt bij de BIBTEX regel het volgende
> uitgevoerd:
> 
> bibtex foobar.tex
> 
> en dat willen we dus niet... in feite moet het worden:
> 
> bibtex foobar
> 
> Die $< moet dus vervangen worden door foobar en niet door foobar.tex.

Je zou (pat)subst kunnen gebruiken daarvoor:
http://www.gnu.org/software/make/manual/html_chapter/make_8.html#SEC85

mvg
Kris
-- 
kris (dot) luyten (@) luc (dot) ac (dot) be
http://research.edm.luc.ac.be/kris/
Technical Details
Message-ID: <pan.2004.07.02.15.55.15.705611@lumumba.luc.ac.be>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!syros.belnet.be!ikaria.belnet.be!news.belnet.be!not-for-mail
References: <1088596078.808274@seven.kulnet.kuleuven.ac.be>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,baebf72900f6f85
X-Google-Attributes: gidfcea4,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!syros.belnet.be!ikaria.belnet.be!news.belnet.be!not-for-mail
From: Kris Luyten <kris@lumumba.luc.ac.be>
Newsgroups: be.comp.programming
Subject: Re: MakeFile probleempje
Date: Fri, 02 Jul 2004 17:55:16 +0200
Organization: LUC/EDM
Lines: 32
Message-ID: <pan.2004.07.02.15.55.15.705611@lumumba.luc.ac.be>
References: <1088596078.808274@seven.kulnet.kuleuven.ac.be>
NNTP-Posting-Host: edm-210.edm.luc.ac.be
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: ikaria.belnet.be 1088783717 11786 193.190.10.210 (2 Jul 2004 15:55:17 GMT)
X-Complaints-To: abuse@belnet.be
NNTP-Posting-Date: Fri, 2 Jul 2004 15:55:17 +0000 (UTC)
User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux))