view Makefile @ 1031:045cb04ad7b8

corrected bug in distribution
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 19 Jun 2018 17:07:35 -0400
parents cc5cb04b04b0
children 0d7e5e290ea3
line wrap: on
line source

INSTALL_DIR = /usr/local/bin
PYTHON_LIB_DIR = 

cexe:
	@cd c && make feature-based-tracking

doc:
	doxygen

clean:
	@cd c && make clean
	@cd python && rm *.pyc

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 "Installing feature-based tracking executable"
	@cp bin/feature-based-tracking /usr/local/bin
uninstall:
	@echo "Uninstalling for Linux"
	rm $(INSTALL_DIR)/feature-based-tracking 
	@cd scripts && ./uninstall-scripts.sh $(INSTALL_DIR)