Makefile-example: add shortcut targets.
Add shortcuts to Makefile-example for regressiontests and program so it can more easily be used as-is. Remove the comment suggesting to use Makefile-AVR directly instead since it is no longer more convenient, at least for the original reason.
This commit is contained in:
parent
a3e956e70b
commit
3520f54db7
|
|
@ -7,12 +7,8 @@
|
||||||
#
|
#
|
||||||
# Then you can type 'make avr' or simply 'make' to build for your printer.
|
# Then you can type 'make avr' or simply 'make' to build for your printer.
|
||||||
#
|
#
|
||||||
# Another choice is to copy "Makefile-AVR" to "Makefile". This is less
|
|
||||||
# convenient for building the simulator, but also allows to upload to the
|
|
||||||
# controller with 'make prog'.
|
|
||||||
#
|
|
||||||
################################################################################
|
################################################################################
|
||||||
.PHONY: sim avr clean all default
|
.PHONY: sim avr clean all default program regressiontests
|
||||||
|
|
||||||
# Override variables in the stock makefiles
|
# Override variables in the stock makefiles
|
||||||
export F_CPU = 20000000L
|
export F_CPU = 20000000L
|
||||||
|
|
@ -32,6 +28,14 @@ avr:
|
||||||
@echo "----[ $(MCU) ]----"
|
@echo "----[ $(MCU) ]----"
|
||||||
@make -sf Makefile-AVR
|
@make -sf Makefile-AVR
|
||||||
|
|
||||||
|
# Shortcut to program target in Makefile-AVR
|
||||||
|
program:
|
||||||
|
@echo "----[ $(MCU) ]----"
|
||||||
|
@make -sf Makefile-AVR program
|
||||||
|
|
||||||
|
regressiontests:
|
||||||
|
@make -sf Makefile-common regressiontests
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "----[ Clean ]----"
|
@echo "----[ Clean ]----"
|
||||||
@make -sf Makefile-SIM clean
|
@make -sf Makefile-SIM clean
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue