File:  [HATARI the Atari ST Emulator] / hatari / cmake / DistClean.cmake
Revision 1.1.1.5 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 9 08:58:47 2019 UTC (7 years, 1 month ago) by root
Branches: hatari, MAIN
CVS tags: hatari02210, hatari02200, HEAD
hatari 2.2.0

#
# "distclean" target for removing the generated files from CMake
#

if(UNIX)
	add_custom_target(distclean  COMMENT "Cleaning up for distribution")
	if (CMAKE_GENERATOR STREQUAL "Unix Makefiles")
		add_custom_command(TARGET distclean POST_BUILD
			COMMAND make clean)
	endif()
	# Clean up Hatari specific files:
	foreach(CLEAN_FILE config.h install_manifest.txt python-ui/conftypes.py
			src/*cpu/cpudefs.c src/*cpu/cpuemu*.c
			src/*cpu/cpustbl.c src/*cpu/cputbl.h)
		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 cmake_install.cmake
			CTestTestfile.cmake Makefile Testing
			'*.a' '*.1.gz' '*.pyc')
		add_custom_command(TARGET distclean POST_BUILD
			COMMAND find . -depth -name ${CLEAN_FILE} | xargs rm -rf
			DEPENDS clean)
	endforeach(CLEAN_FILE)
endif(UNIX)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.