1 ### -*-makefile-gmake-*-
3 ### Build OpenSCAD models
5 ### (c) 2022 Mark Wooding
8 ###----- Licensing notice ---------------------------------------------------
10 ### This program is free software: you can redistribute it and/or modify
11 ### it under the terms of the GNU General Public License as published by
12 ### the Free Software Foundation; either version 3 of the License, or (at
13 ### your option) any later version.
15 ### This program is distributed in the hope that it will be useful, but
16 ### WITHOUT ANY WARRANTY; without even the implied warranty of
17 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ### General Public License for more details.
20 ### You should have received a copy of the GNU General Public License
21 ### along with this program. If not, see <https://www.gnu.org/licenses/>.
25 ## `Silent-rules' machinery.
29 v-tag
= $(call v-tag.
$V,$1)
30 v-tag
.0 = @printf
" %-8s %s\n" "$1" "$@";
32 ## Other configuration.
35 ## Main list of models.
36 MODELS
+= discpick-collar.scad
37 MODELS
+= discpick-tensioner.scad
42 $(call v-tag
,SCAD
)$(OPENSCAD
) -o
$@
-d
$*.dep
$<
43 STLS
= $(MODELS
:.scad
=.stl
)
46 ## Dependency file management.
48 DEPS
+= $(MODELS
:.scad
=.dep
)
52 clean:; rm -f
$(CLEANFILES
)
54 ###----- That's all, folks --------------------------------------------------