Prevents build errors when making e.g. the following switch:
./configure
make
make clean
./configure --with-gui=qt4
make
Prevents build errors when making e.g. the following switch:
./configure
make
make clean
./configure --with-gui=qt4
make
Tested ACK https://github.com/bitcoin/bitcoin/pull/12870/commits/2ebad11cf9ec925e4ad75f4520f40b57df4233e5
Test transcript:
./configure ... && make
find . -name 'moc_*' | wc -l # verify moc_*s
make clean
find . -name 'moc_*' | wc -l # moc_*s gone
make clean && ./configure ... && make
./src/qt/bitcoin-qt -regtest
utACK 2ebad11.
utACK 2ebad11cf9ec925e4ad75f4520f40b57df4233e5
utACK 2ebad11cf9ec925e4ad75f4520f40b57df4233e5
This isn't quite right.
QT_MOC_CPP ends up in CLEAN_QT, which is added to CLEANFILES. Did this not already work as expected?
make clean left at least one src/qt/moc_* file behind. That said, I can't reproduce it by simply going back to the previous commit on master (b386970d0) and running autogen, configure, make and then make clean.
It may have been left behind by some other branch* and thus not be covered by QT_MOC_CPP. What's the correct way of handling such a scenario without using wildcards?
Either way, given that the rm is in the wrong file, this should probably be reverted.
git branch added new GUI elementsMarking "up for grabs", since this needs some fixups.