This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

Re: Do pattern rules work in NT?


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) $<

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