source: app/dist/Makefile @ 246900a

help
Last change on this file since 246900a was 25ae32e, checked in by obrebski <obrebski@…>, 17 years ago

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@4 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

  • Property mode set to 100644
File size: 1.8 KB
Line 
1# compile task doesn't compile sources, but just copy some files
2# this should be changed
3#
4
5# I put here some variables
6
7# path, where binaries are placed
8# (they will be processed for making distribution)
9export _UTT_DIST_DIR=$(shell pwd)/bin
10# path, where distribution file should be placed
11export _UTT_DIST_OUTPUT=$(shell pwd)
12
13
14# -----------------------------------------------------------
15# default task should display options
16.PHONY: default
17defaul:
18        @echo "Using: make compile|tarball|rpm|deb"
19
20
21# -----------------------------------------------------------
22# -----------------------------------------------------------
23# this task should compile utt application
24.PHONY: compile
25compile:
26        if test -d ${_UTT_DIST_DIR}; then rm -fr ${_UTT_DIST_DIR}; fi
27        mkdir -p ${_UTT_DIST_DIR}
28        @# fake compilation
29        cp -r ../utt-0.9/* ${_UTT_DIST_DIR}/
30        @# we add some extra file (required during instalation)
31        cp common/create_utt_config.pl ${_UTT_DIST_DIR}/
32        chmod 700 ${_UTT_DIST_DIR}/create_utt_config.pl
33
34
35# -----------------------------------------------------------
36# this task should compile utt (if nesessery) and create tar.gz version
37.PHONY: tarball
38tarball: compile
39        cd tarball && make
40
41# -----------------------------------------------------------
42# this task should compile utt (if nesessery) and create rpm version
43.PHONY: rpm
44rpm: compile
45        @#we build rpm (see spec/README for details)
46        cd spec && make
47
48# -----------------------------------------------------------
49# this task should compile utt (if nesessery) and create deb version
50.PHONY: deb
51deb: compile
52        @#we build deb (see deb/README for details)
53        cd deb && make
54
55# -----------------------------------------------------------
56# this task should remove compiled files and directories
57.PHONY: clean
58clean:
59        # finally the line below should be uncomment
60        rm -fr ${_UTT_DIST_DIR}
61
Note: See TracBrowser for help on using the repository browser.