Browse Source

Add of make file for build

Jerome Buisine 4 years ago
parent
commit
0241e778f0
3 changed files with 23 additions and 12 deletions
  1. 23 0
      Makefile
  2. 0 8
      build.sh
  3. 0 4
      clean.sh

+ 23 - 0
Makefile

@@ -0,0 +1,23 @@
+lib_svm:
+	cd libSVM-3.20 && make all
+	cp -r ./libSVM-3.20/svm-train ./libSVM-3.20/experimentationsTheseTram
+	cp -r ./libSVM-3.20/svm-predict ./libSVM-3.20/experimentationsTheseTram
+
+clean_lib_svm:
+	cd libSVM-3.20 && make clean
+	rm -r ./libSVM-3.20/experimentationsTheseTram/svm-train
+	rm -r ./libSVM-3.20/experimentationsTheseTram/svm-predict
+
+generate_img_lib:
+	cd classeImage && make generate_img_lab
+
+clean_generate_img:
+	cd classeImage && make clean
+
+all:
+	make lib_svm 
+	make generate_img_lib
+
+clean_all:
+	make clean_lib_svm 
+	make clean_generate_img

+ 0 - 8
build.sh

@@ -1,8 +0,0 @@
-#! bin/bash
-
-cd classeImage && make generate_img_lab && ./generate_img_lab
-cd libSVM-3.20 && make all
-
-cp svm-train experimentationsTheseTram
-cp svm-predict experimentationsTheseTram
-

+ 0 - 4
clean.sh

@@ -1,4 +0,0 @@
-rm classeImage/generate_img_lab
-cd libSVM-3.20 && make clean
-rm -r libSVM3.20/experimentationsTheseTram/svm-train
-rm -r libSVM3.20/experimentationsTheseTram/svm-predict