[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
improved auto-prerequisite algorithm
From: |
Marty Leisner |
Subject: |
improved auto-prerequisite algorithm |
Date: |
Thu, 19 Jan 2006 00:39:15 -0500 |
I've been doing auto-dependencies (prerequisites) for more than a
decade...
This seems to solve a number of problems I've always had
1) the newest docs have the set -e, so failing compiles
stop
2) I added a trap so stopping the make doesn't leave
lots of half-baked files (off form *.d.<pid>).
%.d: %.cc
set -e; address@hidden; trap 'retval=$$?; rm -f $$tmpfile; exit
$$retval' INT TERM EXIT; \
$(CXX) -MM $(CXXFLAGS) $< > $$tmpfile; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $$tmpfile > $@;
k
Marty Leisner
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- improved auto-prerequisite algorithm,
Marty Leisner <=