Subject: Re: Do pattern rules work in NT?
From: [email-masked] (Jason Tishler)

21 Jul 1997 06:43:25 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
References: <[email-masked]>
Reply-To: [email-masked]
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="------------367146D027AA"
X-Mailer: Mozilla 3.01Gold (WinNT; I)
Original-To: [email-masked]
Original-CC: [email-masked]
Original-Sender: [email-masked]

This is a multi-part message in MIME format.

--------------367146D027AA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Robert Nicholson wrote:
> Should the following pattern rule work in NT?
> 
> classes\%.class: %.java
         ^
         +--- backslash or forward slash?
>         javac ......

Is the backslash above a typo?  I use a pattern identical to the one
above except for a forward slash and it works fine with the GNU make
supplied with b17.1.  See attachment for a complete example.

Jason

-- 
Jason Tishler                        Phone: +1 (212) 989-4455 ext. 120
Box Hill Systems Corporation         Fax:   +1 (212) 989-6817
161 Avenue of the Americas           Email: [email-masked]
New York, NY 10013 USA               WWW:   http://www.boxhill.com

--------------367146D027AA
Content-Type: text/plain; charset=us-ascii; name="Fit.mak"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="Fit.mak"

FILES = \
	FitFunction.java \
	Layout.java
PACKAGE = Fit

ROOTDIR = ..
PACKAGEDIR = COM/JLT
CLASSDIR = $(ROOTDIR)/$(PACKAGEDIR)/$(PACKAGE)

CLASSES = $(addprefix $(CLASSDIR)/,$(FILES))
CLASSES := $(CLASSES:.java=.class)

all : $(CLASSES)

clean :
	$(RM) $(CLASSES)

JAVAC = javac
$(CLASSDIR)/%.class : %.java
	$(JAVAC) -d $(ROOTDIR) $<

--------------367146D027AA--

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".