Last change
on this file since 854bece was
5f4d9c3,
checked in by Maciej Prill <mprill@…>, 13 years ago
|
Rewritten the build system, added lem UTF-8 version.
|
-
Property mode set to
100644
|
File size:
606 bytes
|
Rev | Line | |
---|
[5f4d9c3] | 1 | # this makefile will build rpm |
---|
| 2 | |
---|
| 3 | DIR=$(shell pwd) |
---|
| 4 | |
---|
| 5 | ifndef UTT_DIST_DIR |
---|
| 6 | UTT_DIST_DIR=${DIR} |
---|
| 7 | endif |
---|
| 8 | |
---|
| 9 | _RPM_FROOT=${DIR}/rmp_root |
---|
| 10 | _UTT_ROOT=${_RPM_FROOT}/usr/local |
---|
| 11 | # default task |
---|
| 12 | .PHONY: rpm |
---|
| 13 | rpm: |
---|
| 14 | if test -d ${_RPM_FROOT}; then rm -fr ${_RMP_FROOT}; fi |
---|
| 15 | mkdir -p ${_UTT_ROOT} |
---|
| 16 | cp -rf ${UTT_DIST_DIR}/* ${_UTT_ROOT}/ |
---|
| 17 | mkdir -p ${_UTT_ROOT}/cnf |
---|
| 18 | mv ${_UTT_ROOT}/etc/utt/*.conf ${_UTT_ROOT}/cnf/ |
---|
| 19 | ${DIR}/../common/prepare_conf.sh ${_UTT_ROOT}/cnf ${_UTT_ROOT}/etc/utt \\\/usr\\\/local |
---|
| 20 | rm -rf ${_UTT_ROOT}/cnf |
---|
| 21 | |
---|
| 22 | cp ../files/* ${_UTT_ROOT}/ |
---|
| 23 | cd ${_RPM_FROOT}; rpmbuild -bb ${DIR}/utt.spec |
---|
| 24 | |
---|
| 25 | rm -rf ${_RPM_FROOT} |
---|
| 26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.