swh:1:snp:7438b129d9cacb54440879827822fdf5f107e828
Raw File
Tip revision: 7b10dc4c7df3bc16a5f8a2bcb3c7fd42aeaa70ab authored by Sandro Meier on 15 January 2018, 19:45:12 UTC
Merge branch 'devel-fleet-planning' of github.com:duckietown/Software into devel-fleet-planning
Tip revision: 7b10dc4
Makefile.build.mk
duckietown_package=$(catkin_ws)/src/00-infrastructure/duckietown
machines=$(duckietown_package)/machines
cloud_db=$(catkin_ws)/src/00-infrastructure/easy_logs/cloud.yaml

build:
	@echo "$(sep)Building commands"
	@echo
	@echo "Commands to build the software."
	@echo
	@echo '- `make build-catkin`              :  Runs `catkin_make`.'
	@echo '- `make build-catkin-parallel`     :  Runs `catkin_make`, with 4 threads.'
	@echo '- `make build-catkin-parallel-max` :  Runs `catkin_make`, with many threads.'
	@echo
	@echo '- `make build-machines`            :  Builds the machines file.'
	@echo '- `make build-machines-clean`      :  Removes the machines file.'
	@echo
	@echo '- `make build-clean`               :  Clean everything.'
	@echo
	@echo

$(machines): build-machines

build-machines:
	rosrun duckieteam create-machines


cloud-download: $(cloud_db)

$(cloud_db):
	wget -O $@ "https://www.dropbox.com/s/vdl1ej8fihggide/duckietown-cloud.yaml?dl=1"

build-machines-clean:
	@echo
	@echo Removing machines file.
	rm -f $(machines)

build-clean: \
	build-catkin-clean \
	build-machines-clean

build-catkin:
	catkin_make -C $(catkin_ws) --make-args --no-print-directory

build-catkin-parallel:
	catkin_make -C $(catkin_ws) --make-args --no-print-directory --jobs 4

build-catkin-parallel-max:
	catkin_make -C $(catkin_ws) --make-args --no-print-directory --jobs

build-catkin-clean:
	@echo
	@echo Removing the directory $(catkin_ws)/build
	rm -rf $(catkin_ws)/build
	@echo Removing the directory $(catkin_ws)/devel
	rm -rf $(catkin_ws)/devel


.PHONY: check-environment

check-environment:
	# Put here procedures to check the environment is valid
	#-./what-the-duck

pdoc_packages=\
	duckietown_utils\
	easy_logs\
	easy_algo\
	easy_node\
	easy_regression

pdoc_out=out-pdoc

pdoc:
	pdoc --overwrite --html --html-dir $(pdoc_out) duckietown_utils
	pdoc --overwrite --html --html-dir $(pdoc_out) easy_logs
	pdoc --overwrite --html --html-dir $(pdoc_out) easy_algo
	pdoc --overwrite --html --html-dir $(pdoc_out) easy_node
	pdoc --overwrite --html --html-dir $(pdoc_out) easy_regression

pdoc-clean:
	rm -rf  $(pdoc_out)
back to top