48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
|
# main makefile
|
||
|
|
||
|
BIN=bin
|
||
|
SRC=src
|
||
|
DIR=$(shell pwd)
|
||
|
##############################
|
||
|
# CONFIGURATION
|
||
|
|
||
|
# UTT_BIN_DIR - directory for executables
|
||
|
# UTT_SHARE_DIR - directory for data and stuff
|
||
|
# UTT_DOC_DIR - directory for documentation
|
||
|
|
||
|
# example (site installation)
|
||
|
# UTT_BIN_DIR=/usr/local/bin
|
||
|
# UTT_DOC_DIR=/usr/share/doc/utt
|
||
|
|
||
|
UTT_BIN_DIR=~/utt/bin
|
||
|
UTT_SHARE_DIR=~/.utt
|
||
|
UTT_DOC_DIR=~/utt/doc
|
||
|
UTT_LIB_DIR=$(UTT_SHARE_DIR)/lib
|
||
|
##############################
|
||
|
|
||
|
install: make_dirs install_dta install_lib #install_doc install_components
|
||
|
@echo "Installation completed successfully!"
|
||
|
|
||
|
install_components:
|
||
|
cp -r bin/* $(UTT_BIN_DIR)/
|
||
|
|
||
|
install_dta:
|
||
|
if [ -d data ]; then cp -r data/* $(UTT_SHARE_DIR)/; fi
|
||
|
|
||
|
install_doc:
|
||
|
cp -r doc/* $(UTT_DOC_DIR)/
|
||
|
|
||
|
install_lib:
|
||
|
cp -r lib/* $(UTT_LIB_DIR)/
|
||
|
|
||
|
make_dirs:
|
||
|
#if [ -d $(UTT_BIN_DIR) ]; then true; else mkdir -p $(UTT_BIN_DIR); fi
|
||
|
if [ -d $(UTT_SHARE_DIR) ]; then true; else mkdir -p $(UTT_SHARE_DIR); fi
|
||
|
if [ -d $(UTT_LIB_DIR) ]; then true; else mkdir -p $(UTT_LIB_DIR); fi
|
||
|
#if [ -d $(UTT_DOC_DIR) ]; then true; else mkdir -p $(UTT_DOC_DIR); fi
|
||
|
|
||
|
uninstall:
|
||
|
rm -r $(UTT_SHARE_DIR)
|
||
|
#rm -r $(UTT_BIN_DIR)
|
||
|
#rm -r $(UTT_DOC_DIR)
|