Changeset b2647de for app/dist/Makefile
- Timestamp:
- 03/17/08 11:35:12 (17 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/dist/Makefile
r25ae32e rb2647de 1 # compile task doesn't compile sources, but just copy some files2 # this should be changed3 #4 1 5 # I put heresome variables2 # some variables 6 3 7 # path, where binaries are placed4 # path, where all nessesary files are placed 8 5 # (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) 6 export UTT_DIST_DIR=$(UTT_DIR) 7 # path, where distribution package will be placed 8 export UTT_DIST_OUTPUT=$(UTT_DIR)/.. 9 #temp path for making distribution 10 export UTT_DIST_TMP=$(shell pwd)/dist_tmp 12 11 13 12 … … 16 15 .PHONY: default 17 16 defaul: 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" 33 18 34 19 … … 36 21 # this task should compile utt (if nesessery) and create tar.gz version 37 22 .PHONY: tarball 38 tarball: compile23 tarball: 39 24 cd tarball && make 40 25 … … 42 27 # this task should compile utt (if nesessery) and create rpm version 43 28 .PHONY: rpm 44 rpm: compile29 rpm: 45 30 @#we build rpm (see spec/README for details) 46 31 cd spec && make … … 49 34 # this task should compile utt (if nesessery) and create deb version 50 35 .PHONY: deb 51 deb: compile36 deb: 52 37 @#we build deb (see deb/README for details) 53 38 cd deb && make … … 58 43 clean: 59 44 # finally the line below should be uncomment 60 rm -fr ${ _UTT_DIST_DIR}45 rm -fr ${UTT_DIST_TMP} 61 46
Note: See TracChangeset
for help on using the changeset viewer.