www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/11/15:08:09

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Thu, 11 Mar 1999 15:06:20 -0500
From: Timothy Reaves <treaves AT localhost DOT localdomain>
Message-Id: <199903112006.PAA00545@localhost.localdomain>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Please help with make

I have the following line in my .bashrc file.

alias ptj='ptjavac -g -d /dev/classes -classpath $CLASSPATH'

ptjavac is a replacement for javac, with the bug that it cannot properly read the classpath env. var.  That is why it has the -classpath setting.  This app is a windows app, not unix.  The alias allows me to type 'pjt User.java' and all goes well.  However, it fails when called from make.

Here is my Makefile:
************************************************************
# Command to call for compiling a Java source file
PTJAVAC=ptjavac 
# Options to pass with a call to $(PTJAVAC); here, an extra
# directory for class file output should be used.
PTJAVACOPTS=-g -d $(CLASSDIR) -classpath $(CLASSPATH)


User : User.java
	$(PTJAVAC) $(PTJAVACOPTS) User.java
************************************************************

This fails with errors that ptjavac can not find classes, so it is not actually getting the classpath passed in properly.

What am I doing wrong?

Thanks.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019