Mercurial > hg > nsaunier > traffic-intelligence
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 1027:6129296848d3 | 1028:cc5cb04b04b0 |
|---|---|
| 1 INSTALL_DIR = /usr/local/bin | 1 INSTALL_DIR = /usr/local/bin |
| 2 PYTHON_LIB_DIR = | |
| 2 | 3 |
| 3 cexe: | 4 cexe: |
| 4 @cd c && make feature-based-tracking | 5 @cd c && make feature-based-tracking |
| 5 | 6 |
| 6 doc: | 7 doc: |
| 8 | 9 |
| 9 clean: | 10 clean: |
| 10 @cd c && make clean | 11 @cd c && make clean |
| 11 @cd python && rm *.pyc | 12 @cd python && rm *.pyc |
| 12 | 13 |
| 13 install: cexe | 14 installpython: |
| 15 @echo "=========================================" | |
| 16 @echo "Installing Python modules and scripts" | |
| 17 @tar cf /tmp/trafficintelligence.tar setup.py trafficintelligence | |
| 18 @gzip /tmp/trafficintelligence.tar | |
| 19 @pip3 install /tmp/trafficintelligence.tar.gz | |
| 20 @rm /tmp/trafficintelligence.tar.gz | |
| 21 @cp scripts/* $(INSTALL_DIR) | |
| 22 | |
| 23 install: cexe installpython | |
| 14 @echo "=========================================" | 24 @echo "=========================================" |
| 15 @echo "Installing for Linux" | 25 @echo "Installing for Linux" |
| 16 @echo "=========================================" | 26 @echo "=========================================" |
| 17 @echo "Copying feature-based tracking executable" | 27 @echo "Installing feature-based tracking executable" |
| 18 @cp bin/feature-based-tracking /usr/local/bin | 28 @cp bin/feature-based-tracking /usr/local/bin |
| 19 @echo "=========================================" | |
| 20 @echo "Copying Python scripts" | |
| 21 @cp scripts/* $(INSTALL_DIR) | |
| 22 | |
| 23 uninstall: | 29 uninstall: |
| 24 @echo "Uninstalling for Linux" | 30 @echo "Uninstalling for Linux" |
| 25 rm $(INSTALL_DIR)/feature-based-tracking | 31 rm $(INSTALL_DIR)/feature-based-tracking |
| 26 @cd scripts && ./uninstall-scripts.sh $(INSTALL_DIR) | 32 @cd scripts && ./uninstall-scripts.sh $(INSTALL_DIR) |
