summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Schwarz <michi.schwarz@gmail.com>2015-03-09 18:29:19 +0100
committerMichael Schwarz <michi.schwarz@gmail.com>2015-03-09 18:29:49 +0100
commitdc6284662bd4d42280e82833ef6350c3c096ae8b (patch)
treeac7617030986314255b2a7e81d7c2d0e4709e3f3 /Makefile
parentff502f1d22de79648abc2005f83b7d462791ab9a (diff)
downloadpogojig-dc6284662bd4d42280e82833ef6350c3c096ae8b.tar.gz
pogojig-dc6284662bd4d42280e82833ef6350c3c096ae8b.tar.bz2
pogojig-dc6284662bd4d42280e82833ef6350c3c096ae8b.zip
Added makefile targets to build the project to a certain step.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
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)