]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | depend:: |
2 | @echo "$(CXX) -MM \ | |
3 | $(WX_INCLUDES) \ | |
4 | $(ADD_COMPILE) \ | |
5 | $(LIB_SRC) $(BIN_SRC) $(BIN2_SRC)" | |
6 | @(cd .. ;\ | |
7 | $(CXX) -MM \ | |
8 | $(WX_INCLUDES) \ | |
9 | $(ADD_COMPILE) \ | |
10 | $(LIB_SRC) $(BIN_SRC) $(BIN2_SRC)\ | |
11 | ) > .depend | |
12 | @cp Makefile Makefile.bak | |
13 | @cat Makefile.bak | awk 'BEGIN { found=0;} { if ( $$0 == "# DO NOT DELETE") {found=1} ; { if ( found==0 ) { print $$0; } } }' > Makefile1 | |
14 | @echo "# DO NOT DELETE" >> Makefile1 | |
15 | @cat .depend >> Makefile1 | |
16 | @mv Makefile1 Makefile | |
17 | @rm .depend | |
18 |