⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 高效的k-means算法实现
💻
字号:
#-----------------------------------------------------------------------------# Makefile for validation##  This does output validation for the kmltest program on a number of test#  inputs.  The inputs are of the form test*.in and the saved outputs are#  in test*.save.  This assumes that the src/kmltest program has been#  compiled with -O3 and the -DPERF option.  (Otherwise Performance data#  will not be printed.)##	make 				do all validation runs#	make clean			delete temporary files#	make realclean			(same as clean)#	make update			copy the .tmp files to the .save#					files##-----------------------------------------------------------------------------#-----------------------------------------------------------------------------# Basic definitions#	BIN_DIR			directory with executable#	KMLTEST			path to the test program#-----------------------------------------------------------------------------BIN_DIR = ../binKMLTEST = $(BIN_DIR)/kmltestKMLMINIMAL = $(BIN_DIR)/kmlminimalKMLSAMPLE = $(BIN_DIR)/kmlsample#-----------------------------------------------------------------------------# Validation#-----------------------------------------------------------------------------.IGNORE:validate: validateMinimal validateSample validate0 validate1 validate2 \	validate3 validate4 validate5 validate6 validate7validateMinimal:	$(KMLMINIMAL) > testMin.tmp	diff -w testMin.save testMin.tmp > testMin.diff	more testMin.diffvalidateSample:	$(KMLSAMPLE) -d 2 -k 4 -max 20 -df test1-dat.txt -s 20 > testSamp.tmp	diff -w testSamp.save testSamp.tmp > testSamp.diff	more testSamp.diffvalidate0:	$(KMLTEST) < test0.in > test0.tmp	diff -w test0.save test0.tmp > test0.diff	more test0.diffvalidate1:	$(KMLTEST) < test1.in > test1.tmp	diff -w test1.save test1.tmp > test1.diff	more test1.diffvalidate2:	$(KMLTEST) < test2.in > test2.tmp	diff -w test2.save test2.tmp > test2.diff	more test2.diffvalidate3:	$(KMLTEST) < test3.in > test3.tmp	diff -w test3.save test3.tmp > test3.diff	more test3.diffvalidate4:	$(KMLTEST) < test4.in > test4.tmp	diff -w test4.save test4.tmp > test4.diff	more test4.diffvalidate5:	$(KMLTEST) < test5.in > test5.tmp	diff -w test5.save test5.tmp > test5.diff	more test5.diffvalidate6:	$(KMLTEST) < test6.in > test6.tmp	diff -w test6.save test6.tmp > test6.diff	more test6.diffvalidate7:	$(KMLTEST) < test7.in > test7.tmp	diff -w test7.save test7.tmp > test7.diff	more test7.diffupdate:	mv testMin.tmp testMin.save	mv testSamp.tmp testSamp.save	mv test0.tmp test0.save	mv test1.tmp test1.save	mv test2.tmp test2.save	mv test3.tmp test3.save	mv test4.tmp test4.save	mv test5.tmp test5.save	mv test6.tmp test6.save	mv test7.tmp test7.save	-rm -f *.diff#-----------------------------------------------------------------------------# Cleaning#-----------------------------------------------------------------------------clean:	-rm -f *.tmp *.diff *.dmp corerealclean: clean

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -