X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Manni Heumann Newsgroups: comp.os.msdos.djgpp Subject: make, environment variables, and export Date: 2 Dec 2003 15:24:36 GMT Lines: 27 Message-ID: NNTP-Posting-Host: edgar.dhcp.uni-bielefeld.de (129.70.100.169) X-Trace: news.uni-berlin.de 1070378676 68809357 129.70.100.169 (10424 [54749]) User-Agent: Xnews/06.08.25 X-Face: "c)Go+A65AgR*9'!B)BMLM$kYg6HDG!_g'DAsj*ALo%=kp{X&abs&t\G0F~*r?VRj#|4=6)M.RJPnD]Ql:B<-7A^EAYFpDpZRMoJy?80^3B3b AT DXb%MTyOD.*4wu&Xt6o*+6`r5E X-Converter: MorVer Version 1.0.305 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi! I'm trying to make a certain makefile run on all sorts of systems. Currently my problem is "export". According to the make info files and to googled information, make should be able to set an environment variable with export and then run another program, even when it is run under a dos/windows shell (right?). But on W2k (in a dos box) all I get is a "Command or file not found" error. Here's an example: $(TARGET): export TEST=foo; perl somescript.pl before the script runs, I get the error message and the script doesn't see TEST. I'm using make 3.79.1 on W2k SP4. Anyone know what I'm doing wrong? Manni