public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "John Melody" <john@sybernet.ie>
To: "Fleischer, Karsten (K.)" <kfleisc1@ford.com>
Cc: <cygwin@cygwin.com>
Subject: RE: Using cygwin "make"
Date: Wed, 17 Jan 2001 05:29:00 -0000	[thread overview]
Message-ID: <NEBBLJLHKKEFAPIKKIIMAEPACEAA.john@sybernet.ie> (raw)
In-Reply-To: <200101171240.f0HCe1001909@dymwsm10.mailwatch.com>

Karsten, 

I have tried both and neither works. 

It never seems to execute the cd correctly.

With the following definitions 
CLASSES=D:\classes 

The command
 
D:\work>make --win32 -f d:\work\squash02\Makefile jar 
gives me the following output 
cd D:\classes ; jar -cvf d:\cm-build\checkmate-0.7.0\lib\classes.jar squ/
The filename,directory name or volume label syntax is incorrect 
make ***[jar] Error 1 
D:\work>

All the directories do exist but I just can't see what is wrong. 
Any help would be greatly appreciated. 

Regards, 
John. 

-----Original Message-----
From: Fleischer, Karsten (K.) [ mailto:kfleisc1@ford.com ]
Sent: 17 January 2001 12:40
To: 'John Melody'; cygwin@cygwin.com
Subject: RE: Using cygwin "make"


Hi John,

> I notice that the cd command does not work within the make 
> file. I have
> tried d:\classes, and d:/classes but to no avail.

Every single command line of the rule will be executed in its own shell
process, thus you end up in the original current dir in the second
statement.

You can put the commands on a single line, seperated by a semicolon:

	cd $(CLASSES); jar -cvf $(DISTRIBUTION_DIR)\lib\classes.jar squ/

Or you can use line continuation:

	cd $(CLASSES);                                    \
	jar -cvf $(DISTRIBUTION_DIR)\lib\classes.jar squ/


Karsten

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

       reply	other threads:[~2001-01-17  5:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200101171240.f0HCe1001909@dymwsm10.mailwatch.com>
2001-01-17  5:29 ` John Melody [this message]
2001-01-17  6:16 Bernard Dautrevaux
2001-01-17  6:23 ` Christopher Faylor
  -- strict thread matches above, loose matches on Subject: below --
2001-01-17  5:42 Fleischer, Karsten (K.)
2001-01-17  4:40 Fleischer, Karsten (K.)
2001-01-17  4:27 John Melody

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=NEBBLJLHKKEFAPIKKIIMAEPACEAA.john@sybernet.ie \
    --to=john@sybernet.ie \
    --cc=cygwin@cygwin.com \
    --cc=kfleisc1@ford.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).