Re: make & SCCS evilness
Thomas Glanzmann <[email protected]>
| Newsgroups | gmane.comp.version-control.bitkeeper.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
> If I run gcc -M on main.c, it will correctly find foo.h. But because gcc
> isn't aware of SCCS, it will parse foo.h and give an error as it can't
> find bar.h.
clearcase does AFAIK has it's own filesystem so it traces the open
systemcall and gets the file on demand. However to create automatic
dependencies you can use:
(faui00u) [~/work/bs/current] cat Makefile
all:
@make -s -f Makefile.real depend
@make -s -f Makefile.real $@
.DEFAULT:
@make -s -f Makefile.real depend
@make -s -f Makefile.real $@
Makefile:
...
depend:
@$(CC) -MM $(CFLAGS) $(C_SOURCES) | sed -e "s#.*:#$(OBJDIR)/&#" > .depend
@$(CXX) -MM $(CFLAGS) $(CC_SOURCES) | sed -e "s#.*:#$(OBJDIR)/&#" >> .depend
...
-include .depend
But in practice I would do two things: First fix your dependencies (On large
projects it's very annoying to have bad dependencies) and add:
checkout:get
to BitKeeper/etc/config .
Honestly,
Thomas
_______________________________________________
Bitkeeper-users mailing list
[email protected]
http://bitmover.com/mailman/listinfo/bitkeeper-users
To unsubscribe from this list, go to the above URL, follow instruction at the bottom of the web page.