Perhaps QMAKE_EXTRA_TARGETS does the trick:
Qt Code:
  1. clean.files = ... # might need to put something here, otherwise the target gets skipped
  2. clean.commands = ... # here's the custom clean stuff
  3. QMAKE_EXTRA_TARGETS += clean
To copy to clipboard, switch view to plain text mode