2015-12-27 06:54:21 -08:00
|
|
|
ALL_TARGETS := naze
|
|
|
|
ALL_TARGETS += cc3d
|
|
|
|
ALL_TARGETS += cc3d_opbl
|
|
|
|
ALL_TARGETS += spracingf3
|
2016-04-08 02:14:43 -07:00
|
|
|
ALL_TARGETS += spracingf3evo
|
2016-02-10 14:09:22 -08:00
|
|
|
ALL_TARGETS += spracingf3mini
|
2015-12-27 06:54:21 -08:00
|
|
|
ALL_TARGETS += sparky
|
2016-03-01 16:07:31 -08:00
|
|
|
ALL_TARGETS += alienflightf1
|
|
|
|
ALL_TARGETS += alienflightf3
|
2015-12-27 06:54:21 -08:00
|
|
|
ALL_TARGETS += colibri_race
|
2016-01-26 15:19:44 -08:00
|
|
|
ALL_TARGETS += lux_race
|
2015-12-27 06:54:21 -08:00
|
|
|
ALL_TARGETS += motolab
|
|
|
|
ALL_TARGETS += rmdo
|
|
|
|
ALL_TARGETS += ircfusionf3
|
2016-02-10 14:09:22 -08:00
|
|
|
ALL_TARGETS += afromini
|
2016-04-08 14:03:20 -07:00
|
|
|
ALL_TARGETS += doge
|
2016-05-31 02:50:45 -07:00
|
|
|
ALL_TARGETS += singularity
|
2016-06-05 03:53:27 -07:00
|
|
|
ALL_TARGETS += furyf3
|
2016-06-13 00:35:12 -07:00
|
|
|
ALL_TARGETS += sirinfpv
|
2015-11-24 16:18:10 -08:00
|
|
|
|
|
|
|
CLEAN_TARGETS := $(addprefix clean_, $(ALL_TARGETS))
|
|
|
|
|
|
|
|
clean_naze naze : opts := TARGET=NAZE
|
|
|
|
clean_cc3d cc3d: opts := TARGET=CC3D
|
|
|
|
clean_cc3d_opbl cc3d_opbl : opts := TARGET=CC3D_OPBL
|
2016-03-01 14:13:54 -08:00
|
|
|
clean_spracingf3mini spracingf3mini : opts := TARGET=SPRACINGF3MINI
|
2015-11-24 16:18:10 -08:00
|
|
|
clean_spracingf3 spracingf3 : opts := TARGET=SPRACINGF3
|
2016-04-26 09:58:05 -07:00
|
|
|
clean_spracingf3evo spracingf3evo : opts := TARGET=SPRACINGF3EVO
|
2015-11-24 16:18:10 -08:00
|
|
|
clean_sparky sparky : opts := TARGET=SPARKY
|
2016-03-01 16:07:31 -08:00
|
|
|
clean_alienflightf1 alienflightf1 : opts := TARGET=ALIENFLIGHTF1
|
|
|
|
clean_alienflightf3 alienflightf3 : opts := TARGET=ALIENFLIGHTF3
|
2015-11-24 16:18:10 -08:00
|
|
|
clean_colibri_race colibri_race : opts := TARGET=COLIBRI_RACE
|
2016-01-26 15:19:44 -08:00
|
|
|
clean_lux_race lux_race : opts := TARGET=LUX_RACE
|
2015-11-24 16:18:10 -08:00
|
|
|
clean_motolab motolab : opts := TARGET=MOTOLAB
|
|
|
|
clean_rmdo rmdo : opts := TARGET=RMDO
|
|
|
|
clean_ircfusionf3 ircfusionf3 : opts := TARGET=IRCFUSIONF3
|
2016-03-02 05:28:06 -08:00
|
|
|
clean_afromini afromini : opts := TARGET=AFROMINI
|
2016-04-22 03:45:40 -07:00
|
|
|
clean_doge doge : opts := TARGET=DOGE
|
2016-05-31 02:50:45 -07:00
|
|
|
clean_singularity singularity : opts := TARGET=SINGULARITY
|
2016-06-05 03:53:27 -07:00
|
|
|
clean_furyf3 furyf3 : opts := TARGET=FURYF3
|
2016-06-13 00:35:12 -07:00
|
|
|
clean_sirinfpv sirinfpv: opts := TARGET=SIRINFPV
|
2015-11-24 16:18:10 -08:00
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all clean
|
|
|
|
all: everything
|
|
|
|
clean: clean_everything
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: clean_everything
|
|
|
|
clean_everything: $(CLEAN_TARGETS)
|
|
|
|
|
|
|
|
.PHONY: everything
|
|
|
|
everything: $(ALL_TARGETS)
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY:$(ALL_TARGETS)
|
|
|
|
$(ALL_TARGETS):
|
2016-04-26 09:58:05 -07:00
|
|
|
make -f Makefile hex binary $(opts)
|
2015-11-24 16:18:10 -08:00
|
|
|
|
|
|
|
.PHONY: $(CLEAN_TARGETS)
|
|
|
|
$(CLEAN_TARGETS):
|
|
|
|
make -f Makefile clean $(opts)
|
|
|
|
|
|
|
|
.PHONY: help
|
|
|
|
help:
|
|
|
|
@echo "This is your new top makefile. synopsis: make <target>" .
|
|
|
|
@echo "Valid targets":
|
|
|
|
@echo "all"
|
|
|
|
@echo "clean"
|
|
|
|
@echo "$(ALL_TARGETS)"
|
|
|
|
@echo "$(CLEAN_TARGETS)"
|
|
|
|
|