0

I have a makefile as follows.. At the first line that says windows.. Then on that same line, I try to set the variable to windows and jmp to $(WinDIR)/$(WinOUT)

How can I do that?

windows: ObjDIR=Windows $(WinDIR)/$(WinOUT)
    @echo
    @echo "Finished Making windows.."

clean:
    @echo "    Cleaning Build Files."
    @rm -rf $(BinDIR) $(ObjDIR)

$(WinDIR)/$(WinOUT): $(ObjFiles)
    @echo
    @echo "Linking Object Files.."

1 Answer 1

1

Um...

windows: ObjDIR=Windows

windows: $(WinDIR)/$(WinOUT)
    @echo
    @echo "Finished Making windows.."

But I'm not sure you understand how Make works. It won't "jump to" $(WinDIR)/$(WinOUT), it will -- perhaps -- execute the $(WinDIR)/$(WinOUT) rule first.

Sign up to request clarification or add additional context in comments.

1 Comment

This is what I meant. It's exactly what I wanted. I figured it out a couple minutes after posting but thank you for clearing up the jump and for posting the answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.