source: _old/nawszelkiwypadek/tools/dist/Makefile @ 57728c1

Last change on this file since 57728c1 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
RevLine 
[f1563c0]1# main makefile
2
3BIN=bin
4SRC=src
5DIR=$(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
17UTT_BIN_DIR=~/utt/bin
18UTT_SHARE_DIR=~/.utt
19UTT_DOC_DIR=~/utt/doc
20UTT_LIB_DIR=$(UTT_SHARE_DIR)/lib
21##############################
22
23install: make_dirs install_dta install_lib #install_doc install_components
24        @echo "Installation completed successfully!"
25
26install_components:
27        cp -r bin/* $(UTT_BIN_DIR)/
28
29install_dta:
30        if [ -d data ]; then cp -r data/* $(UTT_SHARE_DIR)/; fi
31
32install_doc:
33        cp -r doc/* $(UTT_DOC_DIR)/
34
35install_lib:
36        cp -r lib/* $(UTT_LIB_DIR)/
37
38make_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
44uninstall:
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.