VirtualBox

Ignore:
Timestamp:
Sep 8, 2004 2:43:30 AM (20 years ago)
Author:
bird
Message:

GNU Make 3.81beta1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake/tests/scripts/functions/origin

    r53 r153  
    1616'automatic'            Automatic variable\n";
    1717
    18 # On WIN32 systems, HOME is meaningless. SystemRoot should be defined
    19 # though.  With DJGPP, HOME is not guaranteed to be defined.  Use DJDIR
    20 # instead.
    21 #
    22 $homevar = (($port_type eq 'Windows') ? "SystemRoot"
    23             : (($port_type eq 'DOS') ? "DJDIR"
    24                : "HOME"));
     18# Set an environment variable
     19$ENV{MAKETEST} = 1;
    2520
    2621open(MAKEFILE,"> $makefile");
     
    2823print MAKEFILE <<EOF;
    2924foo := bletch garf
    30 auto_var = udef CC $homevar MAKE foo CFLAGS WHITE \@
     25auto_var = udef CC MAKETEST MAKE foo CFLAGS WHITE \@
    3126av = \$(foreach var, \$(auto_var), \$(origin \$(var)) )
    3227override WHITE := BLACK
     
    3429\t\@echo \$(origin undefined)
    3530\t\@echo \$(origin CC)
    36 \t\@echo \$(origin $homevar)
     31\t\@echo \$(origin MAKETEST)
    3732\t\@echo \$(origin MAKE)
    3833\t\@echo \$(origin foo)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette