From dc6284662bd4d42280e82833ef6350c3c096ae8b Mon Sep 17 00:00:00 2001 From: Michael Schwarz Date: Mon, 9 Mar 2015 18:29:19 +0100 Subject: Added makefile targets to build the project to a certain step. --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 01a0e45..51108ab 100644 --- a/Makefile +++ b/Makefile @@ -36,13 +36,20 @@ DXF_FILES := $(patsubst %.svg,%.dxf,$(SVG_FILES)) # Dependencies which may affect the result of all build products. GLOBAL_DEPS := Makefile $(wildcard config.mk settings.mk) +.PHONY: all clean generated dxf stl + # Everything. Also generates files which aren't compiled to anything else. -all: $(GENERATED_FILES) $(DXF_FILES) $(STL_FILES) +all: generated dxf stl # Everything^-1. clean: rm -rf $(GENERATED_FILES) $(DXF_FILES) $(STL_FILES) $(DEPENDENCY_FILES) +# Targets to build the project up to a specific step. +generated: $(GENERATED_FILES) +dxf: $(DXF_FILES) +stl: $(STL_FILES) + # Include the local configuration file and the dependency files. Needs to be included after the `all' target has been defined. -include config.mk settings.mk $(DEPENDENCY_FILES) -- cgit