3 ALL_TARGETS += cc3d_opbl
4 ALL_TARGETS += spracingf3
5 ALL_TARGETS += spracingf3mini
7 ALL_TARGETS += alienwiif1
8 ALL_TARGETS += alienwiif3
9 ALL_TARGETS += colibri_race
10 ALL_TARGETS += lux_race
11 ALL_TARGETS += motolab
13 ALL_TARGETS += ircfusionf3
14 ALL_TARGETS += afromini
16 CLEAN_TARGETS := $(addprefix clean_, $(ALL_TARGETS))
18 clean_naze naze : opts := TARGET=NAZE
19 clean_cc3d cc3d: opts := TARGET=CC3D
20 clean_cc3d_opbl cc3d_opbl : opts := TARGET=CC3D_OPBL
21 clean_spracingf3 spracingf3 : opts := TARGET=SPRACINGF3MINI
22 clean_spracingf3 spracingf3 : opts := TARGET=SPRACINGF3
23 clean_sparky sparky : opts := TARGET=SPARKY
24 clean_alienwiif1 alienwiif1 : opts := TARGET=ALIENFLIGHTF1
25 clean_alienwiif3 alienwiif3 : opts := TARGET=ALIENFLIGHTF3
26 clean_colibri_race colibri_race : opts := TARGET=COLIBRI_RACE
27 clean_lux_race lux_race : opts := TARGET=LUX_RACE
28 clean_motolab motolab : opts := TARGET=MOTOLAB
29 clean_rmdo rmdo : opts := TARGET=RMDO
30 clean_ircfusionf3 ircfusionf3 : opts := TARGET=IRCFUSIONF3
31 clean_ircfusionf3 ircfusionf3 : opts := TARGET=AFROMINI
36 clean: clean_everything
39 .PHONY: clean_everything
40 clean_everything: $(CLEAN_TARGETS)
43 everything: $(ALL_TARGETS)
48 make -f Makefile $(opts)
50 .PHONY: $(CLEAN_TARGETS)
52 make -f Makefile clean $(opts)
56 @echo "This is your new top makefile. synopsis: make <target>" .
57 @echo "Valid targets":
60 @echo "$(ALL_TARGETS)"
61 @echo "$(CLEAN_TARGETS)"