Mercurial > hg > nsaunier > traffic-intelligence
annotate Makefile @ 1260:158eee1aeb21
correcting bug before interpolation
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Mon, 15 Apr 2024 11:29:31 -0400 |
| parents | 756bc885a573 |
| children | 5ac26907e3c3 |
| 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 "=========================================" |
|
1194
756bc885a573
modifying makefile to avoid installing with pip and sudo
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1167
diff
changeset
|
16 @echo "Installing Python modules (in user space)" |
|
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 |
|
1194
756bc885a573
modifying makefile to avoid installing with pip and sudo
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1167
diff
changeset
|
21 installpythonscripts: |
|
756bc885a573
modifying makefile to avoid installing with pip and sudo
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1167
diff
changeset
|
22 @echo "=========================================" |
|
756bc885a573
modifying makefile to avoid installing with pip and sudo
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1167
diff
changeset
|
23 @echo "Installing Python scripts" |
|
756bc885a573
modifying makefile to avoid installing with pip and sudo
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1167
diff
changeset
|
24 @cp scripts/*.py $(INSTALL_DIR) |
|
1036
0d7e5e290ea3
upload to pypi
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1028
diff
changeset
|
25 uploadpython: |
|
1167
f67b4f892195
minor pypi update
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1145
diff
changeset
|
26 @python setup.py sdist |
|
1036
0d7e5e290ea3
upload to pypi
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1028
diff
changeset
|
27 @twine upload dist/* --skip-existing |
|
0d7e5e290ea3
upload to pypi
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1028
diff
changeset
|
28 #python setup.py sdist upload |
|
1167
f67b4f892195
minor pypi update
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1145
diff
changeset
|
29 #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
|
30 |
|
1194
756bc885a573
modifying makefile to avoid installing with pip and sudo
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1167
diff
changeset
|
31 install: cexe installpythonscripts |
|
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
|
32 @echo "=========================================" |
|
560
5b534ad95bfb
added uninstall option in Makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
554
diff
changeset
|
33 @echo "Installing for Linux" |
|
5b534ad95bfb
added uninstall option in Makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
554
diff
changeset
|
34 @echo "=========================================" |
|
1028
cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
683
diff
changeset
|
35 @echo "Installing feature-based tracking executable" |
|
1145
66f063ca2d24
bug correction for makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
1036
diff
changeset
|
36 @cp bin/feature-based-tracking $(INSTALL_DIR) |
|
560
5b534ad95bfb
added uninstall option in Makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
554
diff
changeset
|
37 uninstall: |
|
5b534ad95bfb
added uninstall option in Makefile
Nicolas Saunier <nicolas.saunier@polymtl.ca>
parents:
554
diff
changeset
|
38 @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
|
39 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
|
40 @cd scripts && ./uninstall-scripts.sh $(INSTALL_DIR) |
