This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Uppercasing files


>>>>> "Emile" == Emiliano  <emile@iris-advies.com> writes:

Emile> I'm trying to create an automake file that has rules to
Emile> uppercase files.  For example I have something.ext and I want
Emile> it to create a copy SOMETHING.EXT. I tried with this:

Emile> pkgdata_DATA = SOMETHING.EXT OTHER.EXT
Emile> CLEANFILES = $(pkgdata_DATA)
Emile> %.EXT : %.ext
Emile> 	cp -f $< `echo $< | tr a-z A-Z`

Emile> but that doesn't work since no file SOMETHING.ext exists. How
Emile> so I go about this?

Write explicit rules.

SOMETHING.EXT: something.ext
    ...

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]