Changeset b2647de for app/dist/Makefile


Ignore:
Timestamp:
03/17/08 11:35:12 (17 years ago)
Author:
pawelk <pawelk@…>
Branches:
master, help
Children:
d593c5e
Parents:
246900a
git-author:
pawelk <pawelk@…> (03/17/08 11:35:12)
git-committer:
pawelk <pawelk@…> (03/17/08 11:35:12)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/dist/Makefile

    r25ae32e rb2647de  
    1 # compile task doesn't compile sources, but just copy some files 
    2 # this should be changed 
    3 # 
    41 
    5 # I put here some variables 
     2# some variables 
    63 
    7 # path, where binaries are placed  
     4# path, where all nessesary files are placed  
    85# (they will be processed for making distribution) 
    9 export _UTT_DIST_DIR=$(shell pwd)/bin 
    10 # path, where distribution file should be placed 
    11 export _UTT_DIST_OUTPUT=$(shell pwd) 
     6export UTT_DIST_DIR=$(UTT_DIR) 
     7# path, where distribution package will be placed 
     8export UTT_DIST_OUTPUT=$(UTT_DIR)/.. 
     9#temp path for making distribution 
     10export UTT_DIST_TMP=$(shell pwd)/dist_tmp 
    1211 
    1312 
     
    1615.PHONY: default 
    1716defaul: 
    18         @echo "Using: make compile|tarball|rpm|deb" 
    19  
    20  
    21 # ----------------------------------------------------------- 
    22 # ----------------------------------------------------------- 
    23 # this task should compile utt application 
    24 .PHONY: compile 
    25 compile: 
    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 
     17        @echo "Using: make tarball|rpm|deb" 
    3318 
    3419 
     
    3621# this task should compile utt (if nesessery) and create tar.gz version 
    3722.PHONY: tarball 
    38 tarball: compile 
     23tarball: 
    3924        cd tarball && make 
    4025 
     
    4227# this task should compile utt (if nesessery) and create rpm version 
    4328.PHONY: rpm 
    44 rpm: compile 
     29rpm: 
    4530        @#we build rpm (see spec/README for details) 
    4631        cd spec && make 
     
    4934# this task should compile utt (if nesessery) and create deb version 
    5035.PHONY: deb 
    51 deb: compile 
     36deb: 
    5237        @#we build deb (see deb/README for details) 
    5338        cd deb && make 
     
    5843clean: 
    5944        # finally the line below should be uncomment 
    60         rm -fr ${_UTT_DIST_DIR} 
     45        rm -fr ${UTT_DIST_TMP} 
    6146 
Note: See TracChangeset for help on using the changeset viewer.