]>
Commit | Line | Data |
---|---|---|
bcf1fa6b RR |
1 | depend:: |
2 | @echo "$(CXX) -MM \ | |
3 | $(WX_INCLUDES) \ | |
4 | $(ADD_COMPILE) \ | |
0133ee93 | 5 | $(LIB_SRC) $(LIB_C_SRC) $(LIB_CPP_SRC) $(BIN_SRC) $(BIN2_SRC)" |
bcf1fa6b RR |
6 | @(cd .. ;\ |
7 | $(CXX) -MM \ | |
8 | $(WX_INCLUDES) \ | |
9 | $(ADD_COMPILE) \ | |
0133ee93 | 10 | $(LIB_SRC) $(LIB_C_SRC) $(LIB_CPP_SRC) $(BIN_SRC) $(BIN2_SRC)\ |
bcf1fa6b RR |
11 | ) > .depend |
12 | @cp Makefile Makefile.bak | |
0133ee93 | 13 | @cat Makefile.bak | sed -e '/^# DO NOT DELETE/q' > Makefile1 |
bcf1fa6b | 14 | @echo "# DO NOT DELETE" >> Makefile1 |
0133ee93 | 15 | @cat .depend | sed 's/^\(.\+\.o\ *:\ *\)\([^\ ]\+\/\)/\2\1\2/g' >> Makefile1 |
bcf1fa6b RR |
16 | @mv Makefile1 Makefile |
17 | @rm .depend | |
18 |