[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
a strange make rule
From: |
Lin George |
Subject: |
a strange make rule |
Date: |
Sun, 27 Aug 2006 02:55:58 -0700 (PDT) |
Hello everyone,
Here is a sample make file.
SRC=foo.c
PROC=$(SRC:%.c=%.o)
TARGET=$(PROC:%.o=$(TARGET_DIR)/%.o)
I know the first two lines mean compile *.c defined in
SRC to *.o. But what does the 3rd line mean? Convert
*.o generated by PROC rule still to *.o? I am confused
that why convert *.o to *.o itself?
thanks in advance,
George
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- a strange make rule,
Lin George <=