This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
RE: Using cygwin "make"
- To: "'John Melody'" <john at sybernet dot ie>, cygwin at cygwin dot com
- Subject: RE: Using cygwin "make"
- From: "Fleischer, Karsten (K.)" <kfleisc1 at ford dot com>
- Date: Wed, 17 Jan 2001 07:39:57 -0500
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