WekaVersion = 3-4-7 WekaWeb = http://umn.dl.sourceforge.net/sourceforge/weka/weka-$(WekaVersion).zip TmpVar = /tmp/var Tmp = /tmp WekaJar = $(TmpVar)/weka.jar WekaZip = $(Tmp)/weka-$(WekaVersion).zip Bin = $(HOME)/bin/wisp SheBang = ../../wisp/lib/MakeSheBang Rc = $(HOME)/etc/wisp/config/our_wekarc Rc1 = etc/our_wekarc all : parents local parents : @cd ../wisp && make @cd ../uci && make local : hello installdirs config wekajar bashfiles gawks examples wekajar : $(WekaJar) hello: @echo "making weka ........... java data mining library" installdirs : if [ ! -d $(TmpVar) ]; then mkdir $(TmpVar); fi; - chmod a+rw $(TmpVar) config : printf "export wJar=\" $(WekaJar)\"\n\n" > $(Rc) cat $(Rc1) >> $(Rc) chmod +x $(Rc) $(WekaJar) : lib/weka.jar cp lib/weka.jar $(WekaJar) chmod a+rw $(WekaJar) bashfiles : cd bash && make -f $(SheBang) prefix=$(Bin) com=$(shell which bash) gawks : @$(foreach p, $(wildcard gawk/* ), \ (echo '#!'$(shell which gawk)' -f';cat $p)>$(Bin)/$(notdir $p); \ chmod +x $(Bin)/$(notdir $p);) examples : @cd eg && make check : all examples @cd eg && make check