# -*-perl-*- $description = "Test the origin function."; $details = "This is a test of the origin function in gnu make. This function will report on where a variable was defined per the following list: 'undefined' never defined 'default' default definition 'environment' environment var without -e 'environment override' environment var with -e 'file' defined in makefile 'command line' defined on the command line 'override' defined by override in makefile 'automatic' Automatic variable\n"; # On WIN32 systems, HOME is meaningless. SystemRoot should be defined though. # With DJGPP, HOME is not guaranteed to be defined. Use DJDIR instead. # $homevar = (($osname =~ /Windows/i) ? "SystemRoot" : (($osname =~ /DOS/i) ? "DJDIR" : "HOME")); open(MAKEFILE,"> $makefile"); print MAKEFILE <