From 3520f54db7b73a85cfd6235cb131659ac95621b6 Mon Sep 17 00:00:00 2001 From: Phil Hord Date: Tue, 14 Jul 2015 16:56:29 -0400 Subject: [PATCH] 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. --- Makefile-example | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile-example b/Makefile-example index 1374bdf..c72f732 100644 --- a/Makefile-example +++ b/Makefile-example @@ -7,12 +7,8 @@ # # 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 export F_CPU = 20000000L @@ -32,6 +28,14 @@ avr: @echo "----[ $(MCU) ]----" @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: @echo "----[ Clean ]----" @make -sf Makefile-SIM clean