Mailinglist Archive: opensuse-programming-de (174 mails)
| < Previous | Next > |
Re: Kommandosubstution in Makefiles
- From: David Haller <lists@xxxxxxxxxx>
- Date: Thu, 29 Jan 2004 22:53:37 +0100
- Message-id: <20040129215337.GA3068@xxxxxxxxxxxxxxxxxx>
Hallo,
Am Thu, 29 Jan 2004, Terje Fåberg schrieb:
>----
>CLASS_FILES=class1.class class2.class
>
>.SUFFIXES:
>.SUFFIXES: .java .class
>
>all: $(CLASS_FILES)
>----
>
>Da sich die Klassen langsam aber sicher
>vermehren, wuerde ich jetzt gerne die
>$(CLASS_FILES) automatisch erzeugen. Die
>offensichtliche Weg funktioniert nicht:
>
>VAR=`find -type f -name .java | sed ....`
====
JAVAC = javac
JAVA_FILES = $(shell find . -type f -name '*.java')
CLASS_FILES = $(patsubst %.java, %.class, $(JAVA_FILES))
all: $(CLASS_FILES)
%.class: %.java
$(JAVAC) $<
====
RTFM: info make
-dnh
--
/* calling RemoveRequest may cause the document to finish loading, which
could result in our death. We need to make sure that we stay alive long
enough to fight another battle... at least until we exit this function. */
nsCOMPtr<imgIRequest> kungFuDeathGrip(this)
-- gef. v. P. Thomas in den Mozilla-Sourcen
Am Thu, 29 Jan 2004, Terje Fåberg schrieb:
>----
>CLASS_FILES=class1.class class2.class
>
>.SUFFIXES:
>.SUFFIXES: .java .class
>
>all: $(CLASS_FILES)
>----
>
>Da sich die Klassen langsam aber sicher
>vermehren, wuerde ich jetzt gerne die
>$(CLASS_FILES) automatisch erzeugen. Die
>offensichtliche Weg funktioniert nicht:
>
>VAR=`find -type f -name .java | sed ....`
====
JAVAC = javac
JAVA_FILES = $(shell find . -type f -name '*.java')
CLASS_FILES = $(patsubst %.java, %.class, $(JAVA_FILES))
all: $(CLASS_FILES)
%.class: %.java
$(JAVAC) $<
====
RTFM: info make
-dnh
--
/* calling RemoveRequest may cause the document to finish loading, which
could result in our death. We need to make sure that we stay alive long
enough to fight another battle... at least until we exit this function. */
nsCOMPtr<imgIRequest> kungFuDeathGrip(this)
-- gef. v. P. Thomas in den Mozilla-Sourcen
| < Previous | Next > |