Changeset 39 for trunk/src/kmk


Ignore:
Timestamp:
Mar 27, 2003, 1:33:46 AM (22 years ago)
Author:
bird
Message:

No sys.mk in NMAKE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/main.c

    r38 r39  
    7979 */
    8080
    81 #ifdef USE_KLIB
     81#if defined(USE_KLIB) || defined(KMK)
    8282    #define KLIB_INSTRICT
    8383    #include <kLib/kLib.h>
     
    819819                sysMkPath = Lst_Init (FALSE);
    820820                Dir_Expand (_PATH_DEFSYSMK, sysIncPath, sysMkPath);
     821                #ifdef NMAKE
     822                if (!Lst_IsEmpty(sysMkPath))
     823                {
     824                    ln = Lst_Find(sysMkPath, (ClientData)NULL, ReadMakefile);
     825                    if (ln != NILLNODE)
     826                            Fatal("make: cannot open %s.", (char *)Lst_Datum(ln));
     827                }
     828                /* Fatal("make: no system rules (%s).", _PATH_DEFSYSMK); */
     829                #else
    821830                if (Lst_IsEmpty(sysMkPath))
    822831                        Fatal("make: no system rules (%s).", _PATH_DEFSYSMK);
     
    824833                if (ln != NILLNODE)
    825834                        Fatal("make: cannot open %s.", (char *)Lst_Datum(ln));
     835                #endif
    826836        }
    827837
     
    832842                if (ln != NILLNODE)
    833843                        Fatal("make: cannot open %s.", (char *)Lst_Datum(ln));
    834         } else if (!ReadMakefile("makefile", NULL))
    835                 (void)ReadMakefile("Makefile", NULL);
     844        } else
     845            #ifdef KMK
     846            if (    !ReadMakefile("Makefile.kMk", NULL)
     847                #if KFILE_CASE
     848                ||  !ReadMakefile("makefile.kMk", NULL)
     849                ||  !ReadMakefile("Makefile.kmk", NULL)
     850                ||  !ReadMakefile("makefile.kmk", NULL)
     851                ||  !ReadMakefile("makefile", NULL)
     852                #endif
     853                )
     854                (void)ReadMakefile("Makefile", NULL);
     855            #else
     856            if (!ReadMakefile("makefile", NULL))
     857                (void)ReadMakefile("Makefile", NULL);
     858            #endif
    836859
    837860        (void)ReadMakefile(".depend", NULL);
Note: See TracChangeset for help on using the changeset viewer.