Index: app/dist/Makefile
===================================================================
--- app/dist/Makefile	(revision 25ae32e4c2354e0ed6756bbe1de83f39cd814652)
+++ app/dist/Makefile	(revision b2647ded51d1c3f8e4a856396ea16c7afd54b9e6)
@@ -1,13 +1,12 @@
-# compile task doesn't compile sources, but just copy some files
-# this should be changed
-#
 
-# I put here some variables
+# some variables
 
-# path, where binaries are placed 
+# path, where all nessesary files are placed 
 # (they will be processed for making distribution)
-export _UTT_DIST_DIR=$(shell pwd)/bin
-# path, where distribution file should be placed
-export _UTT_DIST_OUTPUT=$(shell pwd)
+export UTT_DIST_DIR=$(UTT_DIR)
+# path, where distribution package will be placed
+export UTT_DIST_OUTPUT=$(UTT_DIR)/..
+#temp path for making distribution
+export UTT_DIST_TMP=$(shell pwd)/dist_tmp
 
 
@@ -16,19 +15,5 @@
 .PHONY: default
 defaul:
-	@echo "Using: make compile|tarball|rpm|deb"
-
-
-# -----------------------------------------------------------
-# -----------------------------------------------------------
-# this task should compile utt application
-.PHONY: compile
-compile:
-	if test -d ${_UTT_DIST_DIR}; then rm -fr ${_UTT_DIST_DIR}; fi
-	mkdir -p ${_UTT_DIST_DIR}
-	@# fake compilation
-	cp -r ../utt-0.9/* ${_UTT_DIST_DIR}/
-	@# we add some extra file (required during instalation)
-	cp common/create_utt_config.pl ${_UTT_DIST_DIR}/
-	chmod 700 ${_UTT_DIST_DIR}/create_utt_config.pl
+	@echo "Using: make tarball|rpm|deb"
 
 
@@ -36,5 +21,5 @@
 # this task should compile utt (if nesessery) and create tar.gz version
 .PHONY: tarball
-tarball: compile
+tarball:
 	cd tarball && make
 
@@ -42,5 +27,5 @@
 # this task should compile utt (if nesessery) and create rpm version
 .PHONY: rpm
-rpm: compile
+rpm:
 	@#we build rpm (see spec/README for details)
 	cd spec && make
@@ -49,5 +34,5 @@
 # this task should compile utt (if nesessery) and create deb version
 .PHONY: deb
-deb: compile
+deb:
 	@#we build deb (see deb/README for details)
 	cd deb && make
@@ -58,4 +43,4 @@
 clean:
 	# finally the line below should be uncomment
-	rm -fr ${_UTT_DIST_DIR}
+	rm -fr ${UTT_DIST_TMP}
 
