Mercurial Hosting > traffic-intelligence
annotate 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 |
rev | line source |
---|---|
683
f3a0b652b590
added function to display the speed distributions and optimize a little going through objects
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
614
diff
changeset
|
1 INSTALL_DIR = /usr/local/bin |
1028
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
2 PYTHON_LIB_DIR = |
554
7d051afcb22d
added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
3 |
7d051afcb22d
added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
4 cexe: |
7d051afcb22d
added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
5 @cd c && make feature-based-tracking |
7d051afcb22d
added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
6 |
7d051afcb22d
added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
7 doc: |
7d051afcb22d
added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
8 doxygen |
7d051afcb22d
added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
9 |
7d051afcb22d
added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
10 clean: |
7d051afcb22d
added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
11 @cd c && make clean |
7d051afcb22d
added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
12 @cd python && rm *.pyc |
7d051afcb22d
added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
13 |
1028
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
14 installpython: |
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
15 @echo "=========================================" |
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
16 @echo "Installing Python modules and scripts" |
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
17 @tar cf /tmp/trafficintelligence.tar setup.py trafficintelligence |
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
18 @gzip /tmp/trafficintelligence.tar |
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
19 @pip3 install /tmp/trafficintelligence.tar.gz |
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
20 @rm /tmp/trafficintelligence.tar.gz |
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
21 @cp scripts/* $(INSTALL_DIR) |
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
22 |
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
23 install: cexe installpython |
554
7d051afcb22d
added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
24 @echo "=========================================" |
560
5b534ad95bfb
added uninstall option in Makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
554
diff
changeset
|
25 @echo "Installing for Linux" |
5b534ad95bfb
added uninstall option in Makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
554
diff
changeset
|
26 @echo "=========================================" |
1028
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
27 @echo "Installing feature-based tracking executable" |
554
7d051afcb22d
added back simple makefile to install the feature-based tracking executable and the scripts in /usr/local/bin so that they are accessible without typing the path to the source folder
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
diff
changeset
|
28 @cp bin/feature-based-tracking /usr/local/bin |
560
5b534ad95bfb
added uninstall option in Makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
554
diff
changeset
|
29 uninstall: |
5b534ad95bfb
added uninstall option in Makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
554
diff
changeset
|
30 @echo "Uninstalling for Linux" |
683
f3a0b652b590
added function to display the speed distributions and optimize a little going through objects
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
614
diff
changeset
|
31 rm $(INSTALL_DIR)/feature-based-tracking |
f3a0b652b590
added function to display the speed distributions and optimize a little going through objects
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
614
diff
changeset
|
32 @cd scripts && ./uninstall-scripts.sh $(INSTALL_DIR) |