Code Monkey home page Code Monkey logo

Comments (2)

xparq avatar xparq commented on July 19, 2024

FTR:

traverse_src_tree:
    @cmd /v:on /c <<treewalk.cmd
    @echo off
    rem !!This below fails to run without the extra shell! :-o
    rem !!Also: if the env var is just called "make", the makefile gets parsed twice! :-oo
    set _make_=cmd /c $(MAKE_CMD)
    set srcroot_fullpath=!CD!\$(src_dir)
    :: echo $(src_dir)
    :: echo !srcroot_fullpath!
    rem Do the root level first (-> preps!)...
    rem (Note: naming a (different) target would avoid inf. recursion.)
    !_make_! /c start compiling
    rem Scan the source tree for sources...
    for /f %%i in ('dir /s /b /a:d !srcroot_fullpath!') do (
	    rem It's *vital* to use a local name here, not dir (==DIR!!!):
	    set _dir_=%%i
	    set _dir_=!_dir_:%srcroot_fullpath%=!
	    !_make_! /c compiling DIR=!_dir_!
    )
    !_make_! RECURSED_FOR_FINISHING=1 finish
<<

There's no preexisting %MAKE%, or nothing expects one either, I suppose...
Mmm... But there's $(MAKE)! :-o

But how's that supposed to clash in that context?! And even if it does -- well, through the recursed NMAKE inheriting it! :) --, how does it end up in such a doubled processing?! Ahh, Got it: it has /f Makefile twice on its command-line then! :-o

from nmake-jumpstart.

xparq avatar xparq commented on July 19, 2024

Except... I can't reproduce it now, even with e.g.

nmake /f Makefile RECURSING_FOR_COMPILING=1 /f Makefile out/obj/main.obj

(OK, finally could, with a brand new, almost empty makefile. :) )

from nmake-jumpstart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.