Dependency analysis
Dependency analysis
- Subject: Dependency analysis
- From: Glen Low <email@hidden>
- Date: Sat, 20 Dec 2003 09:26:10 +0800
Hi All,
Just installed Xcode 1.1 (IDE, core & tool support versions 300.0) and
so far so good, like what I see so far.
Now color me stupid, but in the release notes, under 'Rules' pane
fixes: The dependency graph for native targets is properly updated when
editing build rules that use custom scripts.
So I create a test native target with two source files htmlparse.y and
htmllex.c.
1. htmllex.c has a #include of htmlparse.h that is supposed to be
generated by a custom script working on htmlparse.y.
2. This is the rule I put in:
Process: Source files with names matching: */htmlparse.y
Using: Custom script:
cd $(DERIVED_FILE_DIR) && yacc -d $(INPUT_FILE_PATH) && sed
"s/yy/html/g" < y.tab.c > $(INPUT_FILE_BASE).c && sed "s/yy/html/g" <
y.tab.h > $(INPUT_FILE_BASE).h
with output files:
$(DERIVED_FILE_DIR)/$(INPUT_FILE_BASE).c
$(DERIVED_FILE_DIR)/$(INPUT_FILE_BASE).h
3. I build the target. As expected htmllex.c and htmlparse.y are
yacc'ed and/or compiled.
4. If I now touch htmlparse.y, say by adding in a space and deleting
it, htmlparse.y is out of date w.r.t. htmlparse.h, which is out of date
w.r.t. to htmllex.c. But when I build only htmlparse.y gets rebuilt,
not htmllex.c!!
There are no other htmlparse.h in the system, so I don't think the
header analysis system would be confused.
Am I doing something wrong? How to fix?
Cheers, Glen Low
---
pixelglow software | simply brilliant stuff
www.pixelglow.com
P.S. Thanks Xcode developers for fixing the Yacc build rule bug. Now if
only the script rules were fixed too.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.