Mercurial > hg > nsaunier > traffic-intelligence
annotate Makefile @ 1175:35725db5e83f
naming changed for framework
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Mon, 10 Jan 2022 11:14:37 -0500 |
| parents | f67b4f892195 |
| children | 756bc885a573 |
| 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 |
|
1167
f67b4f892195
minor pypi update
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1145
diff
changeset
|
12 @cd trafficintelligence && rm *.pyc |
|
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
|
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" |
|
1036
0d7e5e290ea3
upload to pypi
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1028
diff
changeset
|
17 @tar cf /tmp/trafficintelligence.tar setup.py README trafficintelligence |
|
1028
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) |
|
1036
0d7e5e290ea3
upload to pypi
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1028
diff
changeset
|
22 uploadpython: |
|
1167
f67b4f892195
minor pypi update
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1145
diff
changeset
|
23 @python setup.py sdist |
|
1036
0d7e5e290ea3
upload to pypi
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1028
diff
changeset
|
24 @twine upload dist/* --skip-existing |
|
0d7e5e290ea3
upload to pypi
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1028
diff
changeset
|
25 #python setup.py sdist upload |
|
1167
f67b4f892195
minor pypi update
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1145
diff
changeset
|
26 #python setup.py sdist bdist_wheel |
|
1028
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
27 |
|
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
28 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
|
29 @echo "=========================================" |
|
560
5b534ad95bfb
added uninstall option in Makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
554
diff
changeset
|
30 @echo "Installing for Linux" |
|
5b534ad95bfb
added uninstall option in Makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
554
diff
changeset
|
31 @echo "=========================================" |
|
1028
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
32 @echo "Installing feature-based tracking executable" |
|
1145
66f063ca2d24
bug correction for makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1036
diff
changeset
|
33 @cp bin/feature-based-tracking $(INSTALL_DIR) |
|
560
5b534ad95bfb
added uninstall option in Makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
554
diff
changeset
|
34 uninstall: |
|
5b534ad95bfb
added uninstall option in Makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
554
diff
changeset
|
35 @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
|
36 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
|
37 @cd scripts && ./uninstall-scripts.sh $(INSTALL_DIR) |
