-
-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathMakefile
372 lines (322 loc) · 15.3 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
.SUFFIXES:
.SUFFIXES: .scad .stl
STL_DIR = ./stl
SRC_DIR = ./src
OS := $(shell uname)
# macOS for some reason hides the openscad binary
ifeq ($(OS),Darwin)
OPENSCAD_BIN = /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD
else
OPENSCAD_BIN = openscad
endif
# Tell Openscad to output some custom sized svgs
# Edit some of their parameters with sed
# Then tell inkscape to make pdf files out of them
# Then use Ghostscript to glue together the pdf
# Then clean up
make_layout_pdf_ = \
$(OPENSCAD_BIN) -D page=1 -D 'layout_file=$(1)' -D a4_width=$(3) -D a4_length=$(4) -o p1.svg $(SRC_DIR)/lib/layout_slicer.scad; \
$(OPENSCAD_BIN) -D page=2 -D 'layout_file=$(1)' -D a4_width=$(3) -D a4_length=$(4) -o p2.svg $(SRC_DIR)/lib/layout_slicer.scad; \
$(OPENSCAD_BIN) -D page=3 -D 'layout_file=$(1)' -D a4_width=$(3) -D a4_length=$(4) -o p3.svg $(SRC_DIR)/lib/layout_slicer.scad; \
$(OPENSCAD_BIN) -D page=4 -D 'layout_file=$(1)' -D a4_width=$(3) -D a4_length=$(4) -o p4.svg $(SRC_DIR)/lib/layout_slicer.scad; \
$(OPENSCAD_BIN) -D page=5 -D 'layout_file=$(1)' -D a4_width=$(3) -D a4_length=$(4) -o p5.svg $(SRC_DIR)/lib/layout_slicer.scad; \
$(OPENSCAD_BIN) -D page=6 -D 'layout_file=$(1)' -D a4_width=$(3) -D a4_length=$(4) -o p6.svg $(SRC_DIR)/lib/layout_slicer.scad; \
sed -e "s/<svg width=\"$(3)\" height=\"$(4)\"/<svg width=\"$(3)mm\" height=\"$(4)mm\"/" p1.svg > p1_sed.svg; \
sed -e "s/<svg width=\"$(3)\" height=\"$(4)\"/<svg width=\"$(3)mm\" height=\"$(4)mm\"/" p2.svg > p2_sed.svg; \
sed -e "s/<svg width=\"$(3)\" height=\"$(4)\"/<svg width=\"$(3)mm\" height=\"$(4)mm\"/" p3.svg > p3_sed.svg; \
sed -e "s/<svg width=\"$(3)\" height=\"$(4)\"/<svg width=\"$(3)mm\" height=\"$(4)mm\"/" p4.svg > p4_sed.svg; \
sed -e "s/<svg width=\"$(3)\" height=\"$(4)\"/<svg width=\"$(3)mm\" height=\"$(4)mm\"/" p5.svg > p5_sed.svg; \
sed -e "s/<svg width=\"$(3)\" height=\"$(4)\"/<svg width=\"$(3)mm\" height=\"$(4)mm\"/" p6.svg > p6_sed.svg; \
sed -e "s/fill=\"lightgray\"/fill=\"white\"/" p1_sed.svg > p1_sed2.svg; \
sed -e "s/fill=\"lightgray\"/fill=\"white\"/" p2_sed.svg > p2_sed2.svg; \
sed -e "s/fill=\"lightgray\"/fill=\"white\"/" p3_sed.svg > p3_sed2.svg; \
sed -e "s/fill=\"lightgray\"/fill=\"white\"/" p4_sed.svg > p4_sed2.svg; \
sed -e "s/fill=\"lightgray\"/fill=\"white\"/" p5_sed.svg > p5_sed2.svg; \
sed -e "s/fill=\"lightgray\"/fill=\"white\"/" p6_sed.svg > p6_sed2.svg; \
sed -e "s/stroke-width=\"0\.5\"/stroke-width=\"0\.8\"/" p1_sed2.svg > p1_sed3.svg; \
sed -e "s/stroke-width=\"0\.5\"/stroke-width=\"0\.8\"/" p2_sed2.svg > p2_sed3.svg; \
sed -e "s/stroke-width=\"0\.5\"/stroke-width=\"0\.8\"/" p3_sed2.svg > p3_sed3.svg; \
sed -e "s/stroke-width=\"0\.5\"/stroke-width=\"0\.8\"/" p4_sed2.svg > p4_sed3.svg; \
sed -e "s/stroke-width=\"0\.5\"/stroke-width=\"0\.8\"/" p5_sed2.svg > p5_sed3.svg; \
sed -e "s/stroke-width=\"0\.5\"/stroke-width=\"0\.8\"/" p6_sed2.svg > p6_sed3.svg; \
cairosvg p1_sed3.svg -o p1.pdf; \
cairosvg p2_sed3.svg -o p2.pdf; \
cairosvg p3_sed3.svg -o p3.pdf; \
cairosvg p4_sed3.svg -o p4.pdf; \
cairosvg p5_sed3.svg -o p5.pdf; \
cairosvg p6_sed3.svg -o p6.pdf; \
gs -o $(2) -sDEVICE=pdfwrite \
-dAntiAliasColorImage=false \
-dAntiAliasGrayImage=false \
-dAntiAliasMonoImage=false \
-dAutoFilterColorImages=false \
-dAutoFilterGrayImages=false \
-dDownsampleColorImages=false \
-dDownsampleGrayImages=false \
-dDownsampleMonoImages=false \
-dColorConversionStrategy=/LeaveColorUnchanged \
-dConvertCMYKImagesToRGB=false \
-dConvertImagesToIndexed=false \
-dUCRandBGInfo=/Preserve \
-dPreserveHalftoneInfo=true \
-dPreserveOPIComments=true \
-dPreserveOverprintSettings=true \
p1.pdf p2.pdf p3.pdf p4.pdf p5.pdf p6.pdf; \
rm p1.svg p1_sed.svg p1_sed2.svg p1_sed3.svg p1.pdf \
p2.svg p2_sed.svg p2_sed2.svg p2_sed3.svg p2.pdf \
p3.svg p3_sed.svg p3_sed2.svg p3_sed3.svg p3.pdf \
p4.svg p4_sed.svg p4_sed2.svg p4_sed3.svg p4.pdf \
p5.svg p5_sed.svg p5_sed2.svg p5_sed3.svg p5.pdf \
p6.svg p6_sed.svg p6_sed2.svg p6_sed3.svg p6.pdf
# Magic numbers are size of A4 paper in mm
make_layout_pdf_a4 = $(call make_layout_pdf_,$(1),$(2),210,297)
# Magic numbers are size of letter paper in mm. Must be integers for openscad svg export to work.
make_layout_pdf_letter = $(call make_layout_pdf_,$(1),$(2),216,279)
layout_letter.pdf: layout.dxf
$(call make_layout_pdf_letter,"../../layout.dxf",$@)
layout.dxf: $(SRC_DIR)/lib/whitelabel_motor.scad \
$(SRC_DIR)/lib/layout_slicer.scad \
$(SRC_DIR)/horizontal_line_deflector.scad \
$(SRC_DIR)/new_tilted_line_deflector.scad \
$(SRC_DIR)/layout.scad \
$(SRC_DIR)/line_roller_wire_rewinder.scad \
$(SRC_DIR)/line_verticalizer.scad \
$(SRC_DIR)/landing_brackets.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/spool_core.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) \
-D twod=true \
-D mover=false \
-D mounted_in_ceiling=false \
-D bottom_triangle=false \
-o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
layout_a4.pdf: layout.dxf \
$(SRC_DIR)/lib/whitelabel_motor.scad \
$(SRC_DIR)/lib/util.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/layout_slicer.scad \
$(SRC_DIR)/horizontal_line_deflector.scad \
$(SRC_DIR)/layout.scad \
$(SRC_DIR)/line_roller_wire_rewinder.scad \
$(SRC_DIR)/line_verticalizer.scad \
$(SRC_DIR)/lib/spool_core.scad \
$(SRC_DIR)/new_tilted_line_deflector.scad
$(call make_layout_pdf_a4,"../../layout.dxf",$@)
$(STL_DIR)/1XD_holder.stl: $(SRC_DIR)/1XD_holder.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/bearing_u_608.stl: $(SRC_DIR)/bearing_u_608.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/bearing_u_big_623.stl: $(SRC_DIR)/bearing_u_big_623.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/belt_roller_insert.stl: $(SRC_DIR)/belt_roller_insert.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/bltouch_arm.stl: $(SRC_DIR)/bltouch_arm.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/brace_tightener.stl: $(SRC_DIR)/brace_tightener.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/cable_clamp.stl: $(SRC_DIR)/cable_clamp.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/corner_clamp.stl: $(SRC_DIR)/corner_clamp.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/dleft_spool_cover.stl: $(SRC_DIR)/dleft_spool_cover.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad \
$(SRC_DIR)/lib/gear_util.scad \
$(SRC_DIR)/spool_cover.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/dright_spool_cover.stl: $(SRC_DIR)/dright_spool_cover.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad \
$(SRC_DIR)/lib/gear_util.scad \
$(SRC_DIR)/spool_cover.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/dleft_spool.stl: $(SRC_DIR)/dleft_spool.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/gear_util.scad \
$(SRC_DIR)/spool.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/dright_spool_bottom.stl: $(SRC_DIR)/dright_spool_bottom.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/gear_util.scad \
$(SRC_DIR)/spool.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/dright_spool_top.stl: $(SRC_DIR)/dright_spool_top.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/gear_util.scad \
$(SRC_DIR)/spool.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/extruder_holder.stl: $(SRC_DIR)/extruder_holder.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/GT2_spool_gear.stl: $(SRC_DIR)/GT2_spool_gear.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/gear_util.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/horizontal_line_deflector.stl: $(SRC_DIR)/horizontal_line_deflector.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/landing_brackets.stl: $(SRC_DIR)/landing_brackets.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/line_roller_anchor.stl: $(SRC_DIR)/line_roller_anchor.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/new_tilted_line_deflector.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/line_roller_anchor_template.stl: $(SRC_DIR)/line_roller_anchor_template.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/new_tilted_line_deflector.scad \
$(SRC_DIR)/lib/util.scad \
$(SRC_DIR)/line_roller_anchor.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/line_roller_wire_rewinder.stl: $(SRC_DIR)/line_roller_wire_rewinder.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/line_verticalizer.stl: $(SRC_DIR)/line_verticalizer.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/motor_bracket_A.stl: $(SRC_DIR)/motor_bracket_A.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad \
$(SRC_DIR)/lib/whitelabel_motor.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/motor_bracket_B.stl: $(SRC_DIR)/motor_bracket_B.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad \
$(SRC_DIR)/lib/whitelabel_motor.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/motor_bracket_C.stl: $(SRC_DIR)/motor_bracket_C.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad \
$(SRC_DIR)/lib/whitelabel_motor.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/motor_bracket_D.stl: $(SRC_DIR)/motor_bracket_D.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad \
$(SRC_DIR)/lib/whitelabel_motor.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/pen_fly_brace.stl: $(SRC_DIR)/pen_fly_brace.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/pen_holder_nut_head.stl: $(SRC_DIR)/pen_holder_nut_head.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/pi_mount.stl: $(SRC_DIR)/pi_mount.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/sep_disc.stl: $(SRC_DIR)/sep_disc.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/gear_util.scad \
$(SRC_DIR)/spool.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/spool_cover.stl: $(SRC_DIR)/spool_cover.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/spool_cover_mirrored.stl: $(SRC_DIR)/spool_cover_mirrored.scad \
$(SRC_DIR)/spool_cover.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/spool.stl: $(SRC_DIR)/spool.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad \
$(SRC_DIR)/lib/gear_util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/spool_mirrored.stl: $(SRC_DIR)/spool_mirrored.scad \
$(SRC_DIR)/spool.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad \
$(SRC_DIR)/lib/gear_util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/new_tilted_line_deflector.stl: $(SRC_DIR)/new_tilted_line_deflector.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/ziptie_tensioner_wedge.stl: $(SRC_DIR)/ziptie_tensioner_wedge.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/for_render/ram_1000_3dpotter.stl: $(SRC_DIR)/ram_1000_3dpotter.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/ram_1000_3dpotter_holder.stl: $(SRC_DIR)/ram_1000_3dpotter_holder.scad \
$(SRC_DIR)/ram_1000_3dpotter.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
$(STL_DIR)/ram_1000_3dpotter_top_holder.stl: $(SRC_DIR)/ram_1000_3dpotter_top_holder.scad \
$(SRC_DIR)/ram_1000_3dpotter.scad \
$(SRC_DIR)/lib/parameters.scad \
$(SRC_DIR)/lib/util.scad
$(OPENSCAD_BIN) -o $@ $(SRC_DIR)/$(basename $(notdir $@)).scad
# If we do
# $ make something.stl
# then we should get the same output as if we had done
# $ make stl/something.stl
# Because one gets tired of writing stl/
.PHONY: %.stl
%.stl: $(addprefix $(STL_DIR)/, %.stl)
@echo Executed rule for $<
all: | $(STL_DIR) \
$(STL_DIR)/1XD_holder.stl \
$(STL_DIR)/bearing_u_big_623.stl \
$(STL_DIR)/belt_roller_insert.stl \
$(STL_DIR)/bltouch_arm.stl \
$(STL_DIR)/brace_tightener.stl \
$(STL_DIR)/cable_clamp.stl \
$(STL_DIR)/corner_clamp.stl \
$(STL_DIR)/dleft_spool_cover.stl \
$(STL_DIR)/dright_spool_cover.stl \
$(STL_DIR)/dleft_spool.stl \
$(STL_DIR)/dright_spool_top.stl \
$(STL_DIR)/dright_spool_bottom.stl \
$(STL_DIR)/extruder_holder.stl \
$(STL_DIR)/GT2_spool_gear.stl \
$(STL_DIR)/horizontal_line_deflector.stl \
$(STL_DIR)/landing_brackets.stl \
$(STL_DIR)/line_roller_anchor.stl \
$(STL_DIR)/line_roller_anchor_template.stl \
$(STL_DIR)/line_roller_wire_rewinder.stl \
$(STL_DIR)/line_verticalizer.stl \
$(STL_DIR)/motor_bracket_A.stl \
$(STL_DIR)/motor_bracket_B.stl \
$(STL_DIR)/motor_bracket_C.stl \
$(STL_DIR)/motor_bracket_D.stl \
$(STL_DIR)/pen_fly_brace.stl \
$(STL_DIR)/pen_holder_nut_head.stl \
$(STL_DIR)/pi_mount.stl \
$(STL_DIR)/sep_disc.stl \
$(STL_DIR)/lib/spool_core.stl \
$(STL_DIR)/spool_cover.stl \
$(STL_DIR)/spool_cover_mirrored.stl \
$(STL_DIR)/spool.stl \
$(STL_DIR)/spool_mirrored.stl \
$(STL_DIR)/new_tilted_line_deflector.stl \
$(STL_DIR)/ziptie_tensioner_wedge.stl \
$(STL_DIR)/for_render/ram_1000_3dpotter.stl \
$(STL_DIR)/ram_1000_3dpotter_holder.stl \
$(STL_DIR)/ram_1000_3dpotter_top_holder.stl \
layout.dxf \
layout_a4.pdf
$(STL_DIR):
@echo "Creating STL_DIR $(STL_DIR)"
mkdir -p $@
.PHONY: all