Changeset 46 for trunk/src/kmk/main.c
- Timestamp:
- Apr 4, 2003, 2:03:50 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/main.c
r45 r46 275 275 break; 276 276 case 'a': 277 #ifdef USE_ARCHIVES 277 278 debug |= DEBUG_ARCH; 279 #endif /* else ignore */ 278 280 break; 279 281 case 'c': … … 606 608 607 609 if (uname(&utsname) == -1) { 608 perror( "make: uname");610 perror(MAKE_NAME ": uname"); 609 611 exit(2); 610 612 } … … 775 777 * parsing the makefile(s) 776 778 */ 779 #ifdef USE_ARCHIVES 777 780 Arch_Init(); 781 #endif 778 782 Targ_Init(); 779 783 Suff_Init(); … … 855 859 sysMkPath = Lst_Init (FALSE); 856 860 Dir_Expand (_PATH_DEFSYSMK, sysIncPath, sysMkPath); 857 861 #ifdef NMAKE 858 862 if (!Lst_IsEmpty(sysMkPath)) 859 863 { 860 864 ln = Lst_Find(sysMkPath, (ClientData)NULL, ReadMakefile); 861 865 if (ln != NILLNODE) 862 Fatal( "make: cannot open %s.", (char *)Lst_Datum(ln));866 Fatal(MAKE_NAME ": cannot open %s.", (char *)Lst_Datum(ln)); 863 867 } 864 /* Fatal("make: no system rules (%s).", _PATH_DEFSYSMK); */ 865 #else 868 869 #elif defined(KMK) 870 if (!Lst_IsEmpty(sysMkPath)) 871 { 872 ln = Lst_Find(sysMkPath, (ClientData)NULL, ReadMakefile); 873 if (ln != NILLNODE) 874 Fatal(MAKE_NAME ": cannot open %s.", (char *)Lst_Datum(ln)); 875 876 } 877 Error(MAKE_NAME ": no config rules (%s).", _PATH_DEFSYSMK); 878 #else 866 879 if (Lst_IsEmpty(sysMkPath)) 867 Fatal( "make: no system rules (%s).", _PATH_DEFSYSMK);880 Fatal(MAKE_NAME ": no system rules (%s).", _PATH_DEFSYSMK); 868 881 ln = Lst_Find(sysMkPath, (ClientData)NULL, ReadMakefile); 869 882 if (ln != NILLNODE) 870 Fatal( "make: cannot open %s.", (char *)Lst_Datum(ln));871 883 Fatal(MAKE_NAME ": cannot open %s.", (char *)Lst_Datum(ln)); 884 #endif 872 885 } 873 886 … … 877 890 ln = Lst_Find(makefiles, (ClientData)NULL, ReadMakefile); 878 891 if (ln != NILLNODE) 879 Fatal( "make: cannot open %s.", (char *)Lst_Datum(ln));892 Fatal(MAKE_NAME ": cannot open %s.", (char *)Lst_Datum(ln)); 880 893 } else 881 894 #ifdef KMK … … 1025 1038 Suff_End(); 1026 1039 Targ_End(); 1040 #ifdef USE_ARCHIVES 1027 1041 Arch_End(); 1042 #endif 1028 1043 str_end(); 1029 1044 Var_End(); … … 1357 1372 #endif 1358 1373 1359 (void)fprintf(stderr, "make: ");1374 (void)fprintf(stderr, MAKE_NAME ": "); 1360 1375 (void)vfprintf(stderr, fmt, ap); 1361 1376 va_end(ap); … … 1503 1518 (void)fprintf(stderr, "%s\n%s\n%s\n" 1504 1519 #ifdef NMAKE 1520 "%s\n" 1521 #endif 1522 #ifdef KMK 1505 1523 "%s\n" 1506 1524 #endif … … 1511 1529 #ifdef NMAKE 1512 1530 ,"NMAKE compatible mode enabled." 1513 1531 #endif 1532 #ifdef KMK 1533 ,"kMk extensions enabled." 1514 1534 #endif 1515 1535 );
Note:
See TracChangeset
for help on using the changeset viewer.