Numeric = $(shell find numeric -name "*.arff") Discrete= $(shell find discrete -name "*.arff") Dir = /tmp/var Dirs0 = $(Dir)/numeric $(Dir)/discrete Dirs1 = $(Dir)/numeric/a2b $(Dir)/numeric/c2d $(Dir)/numeric/e2i \ $(Dir)/numeric/j2p $(Dir)/numeric/q2s $(Dir)/numeric/t2z Dirs2 = $(Dir)/discrete/a2b $(Dir)/discrete/c2d $(Dir)/discrete/e2i \ $(Dir)/discrete/j2p $(Dir)/discrete/q2s $(Dir)/discrete/t2z Dirp = if [ ! -d $(dir) ]; then mkdir $(dir); fi; all : hello local local : installdirs cd numeric/a2b && cp * $(Dir)/numeric/a2b cd numeric/c2d && cp * $(Dir)/numeric/c2d cd numeric/e2i && cp * $(Dir)/numeric/e2i cd numeric/j2p && cp * $(Dir)/numeric/j2p cd numeric/q2s && cp * $(Dir)/numeric/q2s cd numeric/t2z && cp * $(Dir)/numeric/t2z cd discrete/a2b && cp * $(Dir)/discrete/a2b cd discrete/c2d && cp * $(Dir)/discrete/c2d cd discrete/e2i && cp * $(Dir)/discrete/e2i cd discrete/j2p && cp * $(Dir)/discrete/j2p cd discrete/q2s && cp * $(Dir)/discrete/q2s cd discrete/t2z && cp * $(Dir)/discrete/t2z chmod -R a+rw $(Dir)/numeric chmod -R a+rw $(Dir)/discrete installdirs : @$(foreach dir, $(Dir), $(Dirp) ) @$(foreach dir, $(Dirs0), $(Dirp) ) @$(foreach dir, $(Dirs1), $(Dirp) ) @$(foreach dir, $(Dirs2), $(Dirp) ) chmod a+rwx $(Dir) $(Dirs0) $(Dirs1) $(Dirs2) hello: @echo "making uci ............ standard data mining data sets"