Last change
on this file since 743cc4f was
57728c1,
checked in by Mateusz Hromada <ruanda@…>, 15 years ago
|
Move old files to _old dir.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[f1563c0] | 1 | # main makefile |
---|
| 2 | |
---|
| 3 | BIN=bin |
---|
| 4 | SRC=src |
---|
| 5 | DIR=$(shell pwd) |
---|
| 6 | ############################## |
---|
| 7 | # CONFIGURATION |
---|
| 8 | |
---|
| 9 | # UTT_BIN_DIR - directory for executables |
---|
| 10 | # UTT_SHARE_DIR - directory for data and stuff |
---|
| 11 | # UTT_DOC_DIR - directory for documentation |
---|
| 12 | |
---|
| 13 | # example (site installation) |
---|
| 14 | # UTT_BIN_DIR=/usr/local/bin |
---|
| 15 | # UTT_DOC_DIR=/usr/share/doc/utt |
---|
| 16 | |
---|
| 17 | UTT_BIN_DIR=~/utt/bin |
---|
| 18 | UTT_SHARE_DIR=~/.utt |
---|
| 19 | UTT_DOC_DIR=~/utt/doc |
---|
| 20 | UTT_LIB_DIR=$(UTT_SHARE_DIR)/lib |
---|
| 21 | ############################## |
---|
| 22 | |
---|
| 23 | install: make_dirs install_dta install_lib #install_doc install_components |
---|
| 24 | @echo "Installation completed successfully!" |
---|
| 25 | |
---|
| 26 | install_components: |
---|
| 27 | cp -r bin/* $(UTT_BIN_DIR)/ |
---|
| 28 | |
---|
| 29 | install_dta: |
---|
| 30 | if [ -d data ]; then cp -r data/* $(UTT_SHARE_DIR)/; fi |
---|
| 31 | |
---|
| 32 | install_doc: |
---|
| 33 | cp -r doc/* $(UTT_DOC_DIR)/ |
---|
| 34 | |
---|
| 35 | install_lib: |
---|
| 36 | cp -r lib/* $(UTT_LIB_DIR)/ |
---|
| 37 | |
---|
| 38 | make_dirs: |
---|
| 39 | #if [ -d $(UTT_BIN_DIR) ]; then true; else mkdir -p $(UTT_BIN_DIR); fi |
---|
| 40 | if [ -d $(UTT_SHARE_DIR) ]; then true; else mkdir -p $(UTT_SHARE_DIR); fi |
---|
| 41 | if [ -d $(UTT_LIB_DIR) ]; then true; else mkdir -p $(UTT_LIB_DIR); fi |
---|
| 42 | #if [ -d $(UTT_DOC_DIR) ]; then true; else mkdir -p $(UTT_DOC_DIR); fi |
---|
| 43 | |
---|
| 44 | uninstall: |
---|
| 45 | rm -r $(UTT_SHARE_DIR) |
---|
| 46 | #rm -r $(UTT_BIN_DIR) |
---|
| 47 | #rm -r $(UTT_DOC_DIR) |
---|
Note: See
TracBrowser
for help on using the repository browser.