mirror of
https://github.com/Wiimpathy/HatariWii.git
synced 2024-11-25 19:16:56 +01:00
28 lines
996 B
CMake
28 lines
996 B
CMake
|
#
|
||
|
# "distclean" target for removing the generated files from CMake
|
||
|
#
|
||
|
|
||
|
if(UNIX)
|
||
|
add_custom_target(distclean COMMENT "Cleaning up for distribution")
|
||
|
# Clean up Hatari specific files:
|
||
|
foreach(CLEAN_FILE config.h install_manifest.txt src/hatari
|
||
|
src/cpu/build68k src/cpu/cpudefs.c src/cpu/cpuemu_*.c
|
||
|
src/cpu/cpustbl.c src/cpu/cputbl.h src/cpu/gencpu
|
||
|
src/uae-cpu/build68k src/uae-cpu/gencpu
|
||
|
src/uae-cpu/cpudefs.c src/uae-cpu/cpuemu.c
|
||
|
src/uae-cpu/cpustbl.c src/uae-cpu/cputbl.h
|
||
|
tools/hmsa/hmsa tools/debugger/gst2ascii
|
||
|
python-ui/conftypes.py)
|
||
|
add_custom_command(TARGET distclean POST_BUILD
|
||
|
COMMAND rm -f ${CLEAN_FILE}
|
||
|
DEPENDS clean)
|
||
|
endforeach(CLEAN_FILE)
|
||
|
# Clean up files that can appear at multiple places:
|
||
|
foreach(CLEAN_FILE CMakeFiles CMakeCache.txt '*.a' '*.1.gz'
|
||
|
cmake_install.cmake Makefile)
|
||
|
add_custom_command(TARGET distclean POST_BUILD
|
||
|
COMMAND find . -depth -name ${CLEAN_FILE} | xargs rm -rf
|
||
|
DEPENDS clean)
|
||
|
endforeach(CLEAN_FILE)
|
||
|
endif(UNIX)
|