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

Re: GNU Make: Zielname als Abhaengigkeit



Hallo,

Am Don, 16 Apr 2009, amirovic@googlemail.com schrieb:
>SRC_FILES = a.xxx b.xxx c.xxx
>
>${SRC_FILES}: $${@:.xxx=.yyy} ./mycompiler
>         ./mycompiler ${@:.xxx=.yyy}
>
>Falls also a.xxx benoetigt wird und falls a.yyy neuer ist oder nicht
>existiert, soll a.xxx aus a.yyy erzeugt werden.

SRC_FILES = a.xxx b.xxx c.xxx
### kennst du 'wildcard'? 
# SRC_FILES = $(patsubst %.yyy, %.xxx, $(wildcard *.yyy))

%.xxx: %.yyy
	./mycompiler $<

Lies mal: info '(make)Rules'

-dnh

-- 
>> >>>Die Probleme dieser Welt begannen, als der erst kam!
>Der erste was?
M-e-n-s-c-h                                                 [in detebe]


Reply to: