Mercurial Hosting > traffic-intelligence
diff Makefile @ 1028:cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 15 Jun 2018 11:19:10 -0400 |
parents | f3a0b652b590 |
children | 0d7e5e290ea3 |
line wrap: on
line diff
--- a/Makefile Fri Jun 15 11:18:43 2018 -0400 +++ b/Makefile Fri Jun 15 11:19:10 2018 -0400 @@ -1,4 +1,5 @@ INSTALL_DIR = /usr/local/bin +PYTHON_LIB_DIR = cexe: @cd c && make feature-based-tracking @@ -10,16 +11,21 @@ @cd c && make clean @cd python && rm *.pyc -install: cexe +installpython: + @echo "=========================================" + @echo "Installing Python modules and scripts" + @tar cf /tmp/trafficintelligence.tar setup.py trafficintelligence + @gzip /tmp/trafficintelligence.tar + @pip3 install /tmp/trafficintelligence.tar.gz + @rm /tmp/trafficintelligence.tar.gz + @cp scripts/* $(INSTALL_DIR) + +install: cexe installpython @echo "=========================================" @echo "Installing for Linux" @echo "=========================================" - @echo "Copying feature-based tracking executable" + @echo "Installing feature-based tracking executable" @cp bin/feature-based-tracking /usr/local/bin - @echo "=========================================" - @echo "Copying Python scripts" - @cp scripts/* $(INSTALL_DIR) - uninstall: @echo "Uninstalling for Linux" rm $(INSTALL_DIR)/feature-based-tracking