Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Makfile question, why it works?

Status
Not open for further replies.

ebuddy

Full Member level 3
Joined
May 15, 2007
Messages
177
Helped
35
Reputation
70
Reaction score
34
Trophy points
1,308
Activity points
2,372
In this Makefile, I see something that I've never seen before:

Code:
t1: a=1
t1:
     @echo "hello"

Two things I am familiar with:

1. t1 target showed twice in the Makefile. Legal?
2. the assignment statement "a=1" showed up in the place of where prerequisites are expected.

This makefile works. So there is some rule I am not aware of. Could someone explain?

ebuddy
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top