This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Do pattern rules work in NT?
- To: robert at elastica dot com
- Subject: Re: Do pattern rules work in NT?
- From: Jason Tishler <jt at boxhill dot com>
- Date: Mon, 21 Jul 1997 08:52:43 -0400
- CC: gnu-win32 at cygnus dot com
- Organization: Box Hill Systems Corporation
- References: <Pine.BSF.3.96.970720090032.6600B-100000@shell8.ba.best.com>
- Reply-To: jt at boxhill dot com
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: jt@boxhill.com
New York, NY 10013 USA WWW: http://www.boxhill.com
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) $<