|
|
1.1 root 1: #
2: # "distclean" target for removing the generated files from CMake
3: #
4:
5: if(UNIX)
6: add_custom_target(distclean COMMENT "Cleaning up for distribution")
1.1.1.2 ! root 7: # Clean up Hatari specific files:
! 8: foreach(CLEAN_FILE config.h install_manifest.txt
! 9: src/hatari src/uae-cpu/build68k
! 10: src/uae-cpu/cpudefs.c src/uae-cpu/cpuemu.c
! 11: src/uae-cpu/cpustbl.c src/uae-cpu/cputbl.h
! 12: src/uae-cpu/gencpu tools/hmsa/hmsa)
1.1 root 13: add_custom_command(TARGET distclean POST_BUILD
1.1.1.2 ! root 14: COMMAND rm -f ${CLEAN_FILE}
! 15: DEPENDS clean)
! 16: endforeach(CLEAN_FILE)
! 17: # Clean up files that can appear at multiple places:
! 18: foreach(CLEAN_FILE CMakeFiles CMakeCache.txt '*.a' '*.1.gz'
! 19: cmake_install.cmake Makefile)
! 20: add_custom_command(TARGET distclean POST_BUILD
! 21: COMMAND find . -depth -name ${CLEAN_FILE} | xargs rm -rf
1.1 root 22: DEPENDS clean)
23: endforeach(CLEAN_FILE)
24: endif(UNIX)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.