This is the mail archive of the cygwin@sources.redhat.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: 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


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