https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 35d9b210d0f2e8d5cb9f11717cfc88e7b11ecb99 authored by daniel_fort on 16 May 2019, 15:27:56 UTC
closed head
Tip revision: 35d9b21
Makefile
TOP_DIR=..

############################################################################################################
# include platform data to build the rules for every model
# build the targets, by stripping the firmware version from the entries in PLATFORM_MAP above
#
# this allows e.g.
#   make 5D3
#   make 5D3.113
#   make 5D3.123
#   make 5D3_install
#   make 5D3.113_install
# on this platform Makefile
#
include Makefile.platform.map
$(foreach _,$(PLATFORM_MAP),$(eval $(call makerule,$(word 1, $(subst ., ,$_)),$_,./)))
#
# we want ML platforms to be built sequentially, to avoid conflicts
# => use .NOTPARALLEL in the upper-level Makefiles only
# parallel build is still used within each platform
.NOTPARALLEL:
#
############################################################################################################


include $(TOP_DIR)/Makefile.setup

beautify-stubs:
	for f in */stubs.S ; do python ../contrib/stub-format/stub-format.py $$f $$f; done

reorder-stubs:
	python ../contrib/stub-format/stub-reorder.py all

cleanup-stubs:
	python ../contrib/stub-format/stub-cleanup.py all

pretty-stubs: beautify-stubs reorder-stubs cleanup-stubs
back to top