From 203fdb99ede40b6d4954a4ae912042981afb6699 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 25 Nov 2023 13:36:25 -0500 Subject: Makefiles are good --- case/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 case/Makefile (limited to 'case/Makefile') diff --git a/case/Makefile b/case/Makefile new file mode 100644 index 0000000..5c63246 --- /dev/null +++ b/case/Makefile @@ -0,0 +1,22 @@ +SCAD_MODELS = top-keyboard.scad top-outline.scad +SCAD_INCLUDE = params.scad + +STL_MODELS = top-keyboard.stl +STL_MODEL_PARAM = top-keyboard.json + +OPENSCAD = /usr/bin/openscad + +all: $(SCAD_MODELS) $(STL_MODELS) + +top-keyboard.scad: SCAD_INPUT = top.scad +top-outline.scad: SCAD_INPUT = outline.scad +top-outline.scad: outline.scad + +$(SCAD_MODELS): + cat $(SCAD_INCLUDE) $(SCAD_INPUT) > $@ + +$(STL_MODELS): %.stl: %.scad + $(OPENSCAD) $< -o $@ + +clean: + $(RM) $(SCAD_MODELS) $(STL_MODELS) -- cgit v1.2.3