utt/app/dist/Makefile
pawelk b2647ded51 Poprawiłem skrypty, generujące dystrybucję tarball oraz rpm.
Można testować: make dist_tarball oraz make dist_rpm.



git-svn-id: svn://atos.wmid.amu.edu.pl/utt@11 e293616e-ec6a-49c2-aa92-f4a8b91c5d16
2008-03-17 10:35:12 +00:00

47 lines
1.3 KiB
Makefile

# some variables
# path, where all nessesary files are placed
# (they will be processed for making distribution)
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
# -----------------------------------------------------------
# default task should display options
.PHONY: default
defaul:
@echo "Using: make tarball|rpm|deb"
# -----------------------------------------------------------
# this task should compile utt (if nesessery) and create tar.gz version
.PHONY: tarball
tarball:
cd tarball && make
# -----------------------------------------------------------
# this task should compile utt (if nesessery) and create rpm version
.PHONY: rpm
rpm:
@#we build rpm (see spec/README for details)
cd spec && make
# -----------------------------------------------------------
# this task should compile utt (if nesessery) and create deb version
.PHONY: deb
deb:
@#we build deb (see deb/README for details)
cd deb && make
# -----------------------------------------------------------
# this task should remove compiled files and directories
.PHONY: clean
clean:
# finally the line below should be uncomment
rm -fr ${UTT_DIST_TMP}